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:
Jose Carlos Venegas Munoz
2019-05-24 11:37:08 -07:00
committed by Ganesh Maharaj Mahalingam
parent d00a5ea9d8
commit e08c92f6d5
2 changed files with 5 additions and 4 deletions
-2
View File
@@ -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
+5 -2
View File
@@ -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