Skip to content

Commit

Permalink
[wip] First pass at making this into a template
Browse files Browse the repository at this point in the history
  • Loading branch information
yankcrime committed Nov 7, 2024
1 parent 80749d1 commit 98b321e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 5 additions & 6 deletions charts/cluster-api-cluster-openstack/templates/workload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,15 @@ spec:
path: {{ $file.path }}
permissions: "0600"
{{- end }}
{{- $configHeader := dict "apiVersion" "kubelet.config.k8s.io/v1beta1" -}}
{{- $configHeader := set $configHeader "kind" "KubeletConfiguration" -}}
{{- with $config := $pool.kubelet }}
- path: /etc/kubernetes/patches/kubeletconfiguration0+strategic.json
owner: "root:root"
permissions: "0644"
content: |
{
"apiVersion": "kubelet.config.k8s.io/v1beta1",
"kind": "KubeletConfiguration",
"serializeImagePulls": false,
"maxParallelImagePulls": 10,
}
{{ merge $configHeader $config | toJson }}
{{- end }}
joinConfiguration:
nodeRegistration:
name: {{ "'{{ local_hostname }}'" }}
Expand Down
5 changes: 5 additions & 0 deletions charts/cluster-api-cluster-openstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ controlPlane:
# - path: /etc/cat
# content: bWVvdw==
#
# # Additional configuration to be passed to the kubelet can be specifed here
# kubelet:
# # For example:
# serializeImagePulls: "false"
#
# # Enable or disable cluster autoscaling.
# # This object is considered immutable.
# autoscaling:
Expand Down

0 comments on commit 98b321e

Please sign in to comment.