Skip to content

Commit d31d053

Browse files
authored
Merge pull request #89 from vishvikkrishnan/fix/maas-tags
Add machine tags to maas cluster template
2 parents 8a6753c + 5ab722d commit d31d053

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

templates/cluster-template-maas.rc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ export WORKER_MACHINE_IMAGE="u-2204-k-1261-0"
1919
# (optional) Configure resource pools for control plane and worker machines
2020
# export CONTROL_PLANE_MACHINE_RESOURCEPOOL="kvm-pool"
2121
# export WORKER_MACHINE_RESOURCEPOOL="bare-metal-pool"
22+
23+
# (optional) Configure (comma-separated) tags for control plane and worker machines
24+
# export CONTROL_PLANE_MACHINE_TAGS="control-plane,controller"
25+
# export WORKER_MACHINE_TAGS="worker,compute"

templates/cluster-template-maas.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ spec:
5454
minMemory: ${CONTROL_PLANE_MACHINE_MINMEMORY}
5555
image: ${CONTROL_PLANE_MACHINE_IMAGE}
5656
resourcePool: ${CONTROL_PLANE_MACHINE_RESOURCEPOOL:= }
57+
tags: [ ${CONTROL_PLANE_MACHINE_TAGS} ]
5758
---
5859
apiVersion: cluster.x-k8s.io/v1beta1
5960
kind: MachineDeployment
@@ -89,6 +90,7 @@ spec:
8990
minMemory: ${WORKER_MACHINE_MINMEMORY}
9091
image: ${WORKER_MACHINE_IMAGE}
9192
resourcePool: ${WORKER_MACHINE_RESOURCEPOOL:= }
93+
tags: [ ${WORKER_MACHINE_TAGS} ]
9294
---
9395
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
9496
kind: MicroK8sConfigTemplate

0 commit comments

Comments
 (0)