I am creating a server group and I want to add a label to the deployment. I don't find any option in the spinnaker UI to add one. Any help on this?
Asked
Active
Viewed 433 times
1
-
Hi, you can use `kubectl label` command to label the pods. you can get the examples with `kubectl label -h`. – Suresh Vishnoi Apr 06 '18 at 12:27
-
@SureshVishnoi I don't want to edit the deployments created by Spinnaker. Is there a way to add labels while creating the deployment? – Sourav Apr 06 '18 at 12:45
-
Hi, You can add your own label or overwrite after deployment of the spinnaker with the above command. – Suresh Vishnoi Apr 06 '18 at 12:47
-
@SureshVishnoi Do you mean to say there's no way to add labels on the fly while creating the deployment? FYI - Spinnaker adds few info as labels while creating the server group, such as version, app, cluster, pod-template-hash etc. I want my custom label to be added during the same time, these above labels are added. – Sourav Apr 06 '18 at 12:49
1 Answers
3
The current version of the Kubernetes cloud provider (v1) does not support configuring labels on Server Groups.
The new Kubernetes Provider (v2), which is manifest-based, allows you to configure labels. This version, however, is still in alpha.
Sources
https://github.com/spinnaker/spinnaker/issues/1624 https://www.spinnaker.io/reference/providers/kubernetes-v2/

Tom Verelst
- 15,324
- 2
- 30
- 40