Skip to content

Custom labels #21

Description

@exocode

What problem are you facing?

Pods could/should be scheduled on nodes via pod affinities, these affinities are defined by node labels (key/value pairs).

How could Crossplane help solve your problem?

It will help scheduling pods on the destinations where they should be in a Gitops/declarative manner

Adding the option to assign node labels in CivoKubernetes cluster manifests could look like this:

kind: CivoKubernetes
apiVersion: cluster.civo.crossplane.io/v1alpha1
metadata:
  name: my-production-cluster
  labels:
    argocd.civo.crossplane.io/cluster: my-production-cluster-production
spec:
  name: my-production-cluster
  pools:
    - id: "app-pool"
      count: 3
      size: g3.k3s.medium
      labels:
        - myKey: value
        - role: worker
    - id: "data-pool"
      count: 3
      size: g3.k3s.small
      labels:
        - myOtherKey: someOtherValue
        - role: edge

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions