File tree Expand file tree Collapse file tree 5 files changed +29
-8
lines changed
Expand file tree Collapse file tree 5 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ keywords:
88- bootstrapping
99- kubernetes
1010- proxmox
11- version : 1.0.0
11+ version : 1.0.1
1212appVersion : v1beta1
1313home : https://github.com/ionos-cloud/cluster-api-provider-proxmox
1414sources :
Original file line number Diff line number Diff line change @@ -99,3 +99,7 @@ range iteration
9999{ {- printf " %s-%s" (include " capi-proxmox.name" .Context) $templateName |
100100 trunc 63 | trimSuffix " -" -} }
101101{ {- end -} }
102+
103+ { {- define " capi-proxmox.kubeadmConfigTemplateJoinConfig" -} }
104+ { {- merge .Context.Values.kubeadmConfigTemplateDefaults .KubeadmConfigTemplate | toYaml } }
105+ { {- end -} }
Original file line number Diff line number Diff line change 1414 users :
1515 {{- toYaml . | nindent 8 }}
1616 {{- end }}
17- {{- with (required (printf
18- " .Values.kubeadmConfigTemplates[%d].joinConfiguration " $index )
19- $template.joinConfiguration ) }}
17+ {{- with
18+ (include "capi-proxmox.kubeadmConfigTemplateJoinConfig " $object |
19+ fromYaml ) }}
2020 joinConfiguration :
2121 {{- toYaml . | nindent 8 }}
2222 {{- end }}
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ kubeadmControlPlane:
2626 - name : juan
2727 sshAuthorizedKeys :
2828 - juan
29+ initConfiguration :
30+ nodeRegistration :
31+ taints : []
32+ joinConfiguration :
33+ nodeRegistration :
34+ taints : []
2935
3036machineTemplates :
3137 - name : control-plane
@@ -62,5 +68,7 @@ kubeadmConfigTemplates:
6268 - name : worker
6369 joinConfiguration :
6470 nodeRegistration :
65- kubeletExtraArgs :
66- provider-id : " proxmox://'{{ ds.meta_data.instance_id }}'"
71+ taints :
72+ - key : role
73+ value : storage
74+ effect : NoSchedule
Original file line number Diff line number Diff line change @@ -199,15 +199,24 @@ kubeadmControlPlane:
199199 preKubeadmCommands :
200200 - /etc/kube-vip-prepare.sh
201201
202+ # This value will be merged with each kubeadmConfigTemplate
203+ kubeadmConfigTemplateDefaults :
204+ joinConfiguration :
205+ nodeRegistration :
206+ kubeletExtraArgs :
207+ provider-id : " proxmox://'{{ ds.meta_data.instance_id }}'"
208+
202209# KubeadmConfigTemplates to create machines.
203210# kubectl explain KubeadmConfigTemplate.spec.kubeadmConfigSpec
204211#
205212kubeadmConfigTemplates : []
206213 # - name: worker
207214 # joinConfiguration:
208215 # nodeRegistration:
209- # kubeletExtraArgs:
210- # provider-id: "proxmox://'{{ ds.meta_data.instance_id }}'"
216+ # taints:
217+ # - key: role
218+ # value: storage
219+ # effect: NoSchedule
211220 # users: []
212221
213222
You can’t perform that action at this time.
0 commit comments