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