Skip to content

Commit

Permalink
Update setupk8s-single-node-cluster.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
leaddevops authored Aug 29, 2023
1 parent fdc3a11 commit fb9f240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setupk8s-single-node-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ prepare_node() {
}
create_cluster() {

kubeadm init --cri-socket unix:///var/run/cri-dockerd.sock --ignore-preflight-errors=all
sudo kubeadm init --cri-socket unix:///var/run/cri-dockerd.sock --ignore-preflight-errors=all
if [ $? -eq 0 ];then
echo "kuberenetes master initilized successfully"

Expand All @@ -43,7 +43,7 @@ create_cluster() {

if [ -f $HOME/.kube/config ];then

sudo kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.1/manifests/calico.yaml
kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.1/manifests/calico.yaml
mnodename=`kubectl get nodes | grep control-plane | awk '{print $1}'`
kubectl taint node $mnodename node-role.kubernetes.io/control-plane:NoSchedule-

Expand Down

0 comments on commit fb9f240

Please sign in to comment.