Skip to content

Commit

Permalink
Merge pull request #89 from vishvikkrishnan/fix/maas-tags
Browse files Browse the repository at this point in the history
Add machine tags to maas cluster template
  • Loading branch information
neoaggelos authored Feb 24, 2024
2 parents 8a6753c + 5ab722d commit d31d053
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/cluster-template-maas.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ export WORKER_MACHINE_IMAGE="u-2204-k-1261-0"
# (optional) Configure resource pools for control plane and worker machines
# export CONTROL_PLANE_MACHINE_RESOURCEPOOL="kvm-pool"
# export WORKER_MACHINE_RESOURCEPOOL="bare-metal-pool"

# (optional) Configure (comma-separated) tags for control plane and worker machines
# export CONTROL_PLANE_MACHINE_TAGS="control-plane,controller"
# export WORKER_MACHINE_TAGS="worker,compute"
2 changes: 2 additions & 0 deletions templates/cluster-template-maas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
minMemory: ${CONTROL_PLANE_MACHINE_MINMEMORY}
image: ${CONTROL_PLANE_MACHINE_IMAGE}
resourcePool: ${CONTROL_PLANE_MACHINE_RESOURCEPOOL:= }
tags: [ ${CONTROL_PLANE_MACHINE_TAGS} ]
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
Expand Down Expand Up @@ -89,6 +90,7 @@ spec:
minMemory: ${WORKER_MACHINE_MINMEMORY}
image: ${WORKER_MACHINE_IMAGE}
resourcePool: ${WORKER_MACHINE_RESOURCEPOOL:= }
tags: [ ${WORKER_MACHINE_TAGS} ]
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: MicroK8sConfigTemplate
Expand Down

0 comments on commit d31d053

Please sign in to comment.