File tree 2 files changed +3
-1
lines changed
pkg/minikube/bootstrapper/kubeadm
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ func (k *KubeadmBootstrapper) StartCluster(k8s config.KubernetesConfig) error {
109
109
// that we also stick in /etc/kubernetes/manifests
110
110
// We use --ignore-preflight-errors=Swap since minikube.iso allocates a swap partition.
111
111
// (it should probably stop doing this, though...)
112
+ // We use --ignore-preflight-errors=CRI since /var/run/dockershim.sock is not present.
113
+ // (because we start kubelet with an invalid config)
112
114
b := bytes.Buffer {}
113
115
if err := kubeadmInitTemplate .Execute (& b , struct { KubeadmConfigFile string }{constants .KubeadmConfigFile }); err != nil {
114
116
return err
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ sudo /usr/bin/kubeadm alpha phase controlplane all --config {{.KubeadmConfigFile
71
71
sudo /usr/bin/kubeadm alpha phase etcd local --config {{.KubeadmConfigFile}}
72
72
` ))
73
73
74
- var kubeadmInitTemplate = template .Must (template .New ("kubeadmInitTemplate" ).Parse ("sudo /usr/bin/kubeadm init --config {{.KubeadmConfigFile}} --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=Swap" ))
74
+ var kubeadmInitTemplate = template .Must (template .New ("kubeadmInitTemplate" ).Parse ("sudo /usr/bin/kubeadm init --config {{.KubeadmConfigFile}} --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI " ))
75
75
76
76
// printMapInOrder sorts the keys and prints the map in order, combining key
77
77
// value pairs with the separator character
You can’t perform that action at this time.
0 commit comments