Skip to content

Commit 6fb2b7c

Browse files
authored
Merge pull request #241 from openinfradev/override-kubelet-args
add value 'kubeletExtraArgs' to cluster-api-aws
2 parents 280df38 + 1747425 commit 6fb2b7c

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

cluster-api-aws/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ description: A chart to install Kubernetes cluster using Cluster API Provider AW
44

55
type: application
66

7-
version: 0.11.1
7+
version: 0.11.2
88

99
appVersion: "2.2.1"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ spec:
104104
spec:
105105
joinConfiguration:
106106
nodeRegistration:
107+
{{- with $envAll.Values.kubeadmConfig.kubeletExtraArgs }}
107108
kubeletExtraArgs:
108109
cloud-provider: aws
110+
{{ toYaml . }}
109111
name: '{{`{{ ds.meta_data.local_hostname }}`}}'
112+
{{- end }}
110113
{{- end }}
111114
{{- end }}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ metadata:
101101
spec:
102102
joinConfiguration:
103103
nodeRegistration:
104+
{{- with $envAll.Values.kubeadmConfig.kubeletExtraArgs }}
104105
kubeletExtraArgs:
105106
cloud-provider: aws
107+
{{ toYaml . }}
106108
name: '{{`{{ ds.meta_data.local_hostname }}`}}'
109+
{{- end }}
107110
{{- end }}
108111
{{- end }}

cluster-api-aws/values.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ kubeadmControlPlane:
8080
listen-metrics-urls: "http://0.0.0.0:2381"
8181

8282
machinePool: []
83-
# You can define machinePool. referce the belows.
83+
# You can define machinePool. Refer to below.
8484
# - name: taco
8585
# machineType: t3.2xlarge
8686
# replicas: 3
@@ -110,7 +110,7 @@ machinePool: []
110110
# additionalSecurityGroups: []
111111

112112
machineDeployment: []
113-
# You can define machineDeployment to use cluster-autoscaler on aws. referce the belows.
113+
# You can define machineDeployment to use cluster-autoscaler on aws. Refer to below.
114114
# - name: normal
115115
# numberOfAZ: 3
116116
# minSizePerAZ: 1
@@ -129,3 +129,10 @@ machineDeployment: []
129129

130130
nameOverride: ""
131131
fullnameOverride: ""
132+
133+
# Extra args for kubelet except 'cloud-provider'. Refer to the example below.
134+
# kubeletExtraArgs:
135+
# feature-gates: "InPlacePodVerticalScaling=true"
136+
# max-pods: "110"
137+
kubeadmConfig:
138+
kubeletExtraArgs: {}

0 commit comments

Comments
 (0)