Skip to content

Commit c5f96a1

Browse files
authored
fix DEPLOY_KUBE_FLANNEL in default cluster template (#57)
1 parent 39c4743 commit c5f96a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/clusterclass-lxc-default.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ spec:
348348
- op: add
349349
path: /spec/template/spec/kubeadmConfigSpec/postKubeadmCommands/-
350350
value: |
351-
set -x
352351
if [ -f /run/kubeadm/kubeadm.yaml ]; then
353352
kubectl --kubeconfig=/etc/kubernetes/admin.conf apply -f /run/kubeadm/kube-flannel.yaml
354353
fi
@@ -760,13 +759,14 @@ spec:
760759
patches:
761760
directory: /etc/kubernetes/patches
762761
preKubeadmCommands:
763-
- set -x
762+
- set -ex
764763
# Workaround for kube-proxy failing to configure nf_conntrack_max_per_core on LXC
765764
- |
766765
if systemd-detect-virt -c -q 2>/dev/null && [ -f /run/kubeadm/kubeadm.yaml ]; then
767766
cat /run/kubeadm/hack-kube-proxy-config-lxc.yaml | tee -a /run/kubeadm/kubeadm.yaml
768767
fi
769-
postKubeadmCommands: []
768+
postKubeadmCommands:
769+
- set -x
770770
files:
771771
- path: /etc/kubernetes/patches/.placeholder
772772
content: placeholder file to prevent kubeadm path not found errors

0 commit comments

Comments
 (0)