Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- history
- 2 sudo apt install git vim bash-completion curl wget
- 3 git clone https://github.com/sandervanvugt/devopsinfourweeks
- 4 cd devopsinfourweeks/
- 5 ls
- 6 ./setup-containerd-ubu.sh
- 7 ./setup-kubetools-ubu.sh
- 8 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
- 9 ls
- 10 sudo vim /etc/fstab
- 11 swapoff /swapfile
- 12 sudo swapoff /swapfile
- 13 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
- 14 mkdir -p $HOME/.kube
- 15 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
- 16 sudo chown student:student .kube/config
- 17 sudo chown student:student $HOME/.kube/config
- 18 kubectl get all
- 19 kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
- 20 wget https://docs.projectcalico.org/manifests/custom-resources.yaml
- 21 vim custom-resources.yaml
- 22 kubectl create -f custom-resources.yaml
- 23 kubectl get pods -n calico-system
- 24 history
- 25 kubectl get pods -n calico-system
- 26 kubectl taint nodes --all node-role.kubernetes.io/master-
- 27 kubectl get all
- 28 kubectl create deploy nginx --image=nginx
- 29 kubectl get all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement