File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ prepare_node() {
33
33
}
34
34
create_cluster () {
35
35
36
- kubeadm init --cri-socket unix:///var/run/cri-dockerd.sock --ignore-preflight-errors=all
36
+ sudo kubeadm init --cri-socket unix:///var/run/cri-dockerd.sock --ignore-preflight-errors=all
37
37
if [ $? -eq 0 ]; then
38
38
echo " kuberenetes master initilized successfully"
39
39
@@ -43,7 +43,7 @@ create_cluster() {
43
43
44
44
if [ -f $HOME /.kube/config ]; then
45
45
46
- sudo kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.1/manifests/calico.yaml
46
+ kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.1/manifests/calico.yaml
47
47
mnodename=` kubectl get nodes | grep control-plane | awk ' {print $1}' `
48
48
kubectl taint node $mnodename node-role.kubernetes.io/control-plane:NoSchedule-
49
49
You can’t perform that action at this time.
0 commit comments