Skip to content

Commit 73daf9f

Browse files
authored
Merge pull request #243 from openinfradev/capa_fix_mp_kubeadmconfig
cluster-api-aws: fix kubelet args for machinePool/Deployment
2 parents 71c8d62 + 8968d63 commit 73daf9f

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

cluster-api-aws/templates/machine-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ spec:
104104
spec:
105105
joinConfiguration:
106106
nodeRegistration:
107-
{{- with $envAll.Values.kubeadmConfig.kubeletExtraArgs }}
108107
kubeletExtraArgs:
109108
cloud-provider: external
110-
{{ toYaml . }}
109+
{{- with $envAll.Values.machineKubeadmConfig.kubeletExtraArgs }}
110+
{{- toYaml . | nindent 12}}
111+
{{- end }}
111112
name: '{{`{{ ds.meta_data.local_hostname }}`}}'
112-
{{- end }}
113113
{{- end }}
114114
{{- end }}

cluster-api-aws/templates/machine-pool.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ metadata:
101101
spec:
102102
joinConfiguration:
103103
nodeRegistration:
104-
{{- with $envAll.Values.kubeadmConfig.kubeletExtraArgs }}
105104
kubeletExtraArgs:
106105
cloud-provider: external
107-
{{ toYaml . }}
106+
{{- with $envAll.Values.machineKubeadmConfig.kubeletExtraArgs }}
107+
{{- toYaml . | nindent 8 }}
108+
{{- end }}
108109
name: '{{`{{ ds.meta_data.local_hostname }}`}}'
109-
{{- end }}
110110
{{- end }}
111111
{{- end }}

cluster-api-aws/values.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ machineDeployment: []
127127
# # MaxPrice defines the maximum price the user is willing to pay for Spot VM instances
128128
# additionalSecurityGroups: []
129129

130+
machineKubeadmConfig:
131+
kubeletExtraArgs: {}
132+
# Extra args for machinePool/Deployment nodes's kubelet except 'cloud-provider'. Refer to the example below.
133+
# kubeletExtraArgs:
134+
# feature-gates: "InPlacePodVerticalScaling=true"
135+
# max-pods: "110"
136+
130137
awsCloudControllerManager:
131138
image:
132139
repository: registry.k8s.io/provider-aws/cloud-controller-manager
133140
tag: v1.28.3
134141
nameOverride: ""
135142
fullnameOverride: ""
136-
137-
# Extra args for kubelet except 'cloud-provider'. Refer to the example below.
138-
# kubeletExtraArgs:
139-
# feature-gates: "InPlacePodVerticalScaling=true"
140-
# max-pods: "110"
141-
kubeadmConfig:
142-
kubeletExtraArgs: {}

0 commit comments

Comments
 (0)