Skip to content

How to add labels and annotations to all pods of a cluster? #7557

Answered by shanshanying
Pieerot asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on which version of KubeBlocks you are working with.

Prior to Release 0.8

say you are working with ClusterDefinition
you can put your customized lable to clusterdefinition.spec.componentDefs.customLabelSpecs

 k explain clusterdefinition.spec.componentDefs.customLabelSpecs 
GROUP:      apps.kubeblocks.io
KIND:       ClusterDefinition
VERSION:    v1alpha1

FIELD: customLabelSpecs <[]Object>

DESCRIPTION:
    customLabelSpecs is used for custom label tags which you want to add to the
    component resources.

FIELDS:
  key	<string> -required-
    key name of label

  resources	<[]Object>
    resources defines the resources to be labeled.

  value	<string> -required-
    value of l…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@Pieerot
Comment options

@weicao
Comment options

@weicao
Comment options

@Pieerot
Comment options

@weicao
Comment options

Answer selected by Pieerot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants