X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fcluster%2Ftemplates%2Fkubeadmconfigtemplate.yaml;h=c2858d6b2649c196f32c4584b412dd07596f51e4;hb=refs%2Fchanges%2F14%2F4614%2F2;hp=33afc28b071403458e7169a8688b2686d2e65816;hpb=0b56dfc41bd40f0e59a4a8f65a1fdf184e74747d;p=icn.git diff --git a/deploy/cluster/templates/kubeadmconfigtemplate.yaml b/deploy/cluster/templates/kubeadmconfigtemplate.yaml index 33afc28..c2858d6 100644 --- a/deploy/cluster/templates/kubeadmconfigtemplate.yaml +++ b/deploy/cluster/templates/kubeadmconfigtemplate.yaml @@ -15,6 +15,9 @@ spec: kube-reserved: cpu=100m,memory=256Mi name: '{{ "{{" }} ds.meta_data.name {{ "}}" }}' preKubeadmCommands: +{{- if .Values.preKubeadmCommands }} +{{ toYaml .Values.preKubeadmCommands | indent 6 }} +{{- end }} {{- if .Values.networks }} # Without touching up /etc/hosts, kubeadm may pick the wrong # (i.e. provisioning network) address for the node IP