fix: Ensure patches are applied during kubeadm upgrade
This commit is contained in:
parent
573bdd4b77
commit
597bd4d1fb
@ -6,6 +6,7 @@ localAPIEndpoint:
|
||||
patches:
|
||||
directory: /tmp/patches
|
||||
nodeRegistration:
|
||||
criSocket: "unix:///var/run/crio/crio.sock"
|
||||
ignorePreflightErrors:
|
||||
- DirAvailable--var-lib-etcd
|
||||
- DirAvailable--etc-kubernetes-manifests
|
||||
|
@ -1,4 +1,6 @@
|
||||
apiVersion: kubeadm.k8s.io/v1beta3
|
||||
kind: JoinConfiguration
|
||||
nodeRegistration:
|
||||
criSocket: "unix:///var/run/crio/crio.sock"
|
||||
patches:
|
||||
directory: /tmp/patches
|
||||
|
@ -130,7 +130,7 @@ if [ "$1" == 'upgrade' ]; then
|
||||
pre_kubeadm
|
||||
|
||||
# Upgrade
|
||||
_kubeadm upgrade apply -y
|
||||
_kubeadm upgrade apply -y --patches /tmp/patches
|
||||
|
||||
post_kubeadm
|
||||
|
||||
|
@ -48,7 +48,7 @@ spec:
|
||||
type: Directory
|
||||
EOF
|
||||
|
||||
kubectl rollout status daemonset -n kube-system kubezero-upgrade-${VERSION//.} --timeout 300s
|
||||
#kubectl rollout status daemonset -n kube-system kubezero-upgrade-${VERSION//.} --timeout 300s
|
||||
kubectl delete ds kubezero-upgrade-${VERSION//.} -n kube-system
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user