mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-09-03 20:31:30 +00:00
stack: do not provide CRI socket
kubeadm autodetects the socket path based on defaults from well known CRI servers. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
committed by
Ganesh Maharaj Mahalingam
parent
d00a5ea9d8
commit
e08c92f6d5
@@ -1,7 +1,5 @@
|
||||
apiVersion: kubeadm.k8s.io/v1beta1
|
||||
kind: InitConfiguration
|
||||
nodeRegistration:
|
||||
criSocket: /var/run/crio/crio.sock
|
||||
---
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
set -o nounset
|
||||
|
||||
#Cleanup
|
||||
sudo -E kubeadm reset -f --cri-socket="/var/run/crio/crio.sock"
|
||||
reset_cluster() {
|
||||
sudo -E kubeadm reset -f
|
||||
}
|
||||
reset_cluster
|
||||
|
||||
for ctr in $(sudo crictl ps --quiet); do
|
||||
sudo crictl stop "$ctr"
|
||||
@@ -43,4 +46,4 @@ sudo systemctl enable kubelet crio
|
||||
sudo systemctl restart crio
|
||||
sudo systemctl restart kubelet
|
||||
|
||||
sudo -E kubeadm reset -f --cri-socket="/var/run/crio/crio.sock"
|
||||
reset_cluster
|
||||
|
||||
Reference in New Issue
Block a user