Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit 5eea977

Browse files
authored
Add instanceGroup labels to nodes (#44)
1 parent 37c79a2 commit 5eea977

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/kops/kops-private-topology.yaml.gotmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ spec:
328328
k8s.io/cluster-autoscaler/enabled: "true"
329329
k8s.io/cluster-autoscaler/{{ getenv "KOPS_CLUSTER_NAME" }}: "owned"
330330
{{- end }}
331+
nodeLabels:
332+
instanceGroup: nodes-{{ . }}
331333
image: {{ getenv "KOPS_BASE_IMAGE" }}
332334
machineType: {{ getenv "NODE_MACHINE_TYPE" }}
333335
maxSize: {{ getenv "NODE_MAX_SIZE_PER_AZ" }}
@@ -353,6 +355,8 @@ spec:
353355
k8s.io/cluster-autoscaler/enabled: "true"
354356
k8s.io/cluster-autoscaler/{{ getenv "KOPS_CLUSTER_NAME" }}: "owned"
355357
{{- end }}
358+
nodeLabels:
359+
instanceGroup: nodes
356360
image: {{ getenv "KOPS_BASE_IMAGE" }}
357361
machineType: {{ getenv "NODE_MACHINE_TYPE" }}
358362
maxSize: {{ getenv "NODE_MAX_SIZE" }}

0 commit comments

Comments
 (0)