Skip to content

Kubernetes nodes with affinity group #6485

@tenvecera

Description

@tenvecera
ISSUE TYPE
  • Improvement Request
COMPONENT NAME
Kubernetes
CLOUDSTACK VERSION
4.16.1
SUMMARY

If I understand correctly, I'm unable to specify affinity group for newly spawned kubernetes nodes. Api (listkubernetescluster) lists affinity group incorrectly (empty array). My feature request is possibility to setup default affinity group for newly spawned VM's or provide workaround.

My use-case is: On our company infrastructure we have multiple groups of machines (with same CPU, RAM etc.) every group is in separate cluster. Each cluster is dedicated for account (affinity group) and I want to run kubernetes on each cluster. But if I scale it up or enable auto-scale, newly spawned VM's aren't member of affinity group, so VM's are spawned on not dedicated cluster.

STEPS TO REPRODUCE

Simply scale kubernetes cluster

EXPECTED RESULTS

Spawn new virtual machine on dedicated cluster defined by affinity group.

ACTUAL RESULTS

New virtual machines is spawned on non-dedicated cluster.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions