Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### RUN AS ROOT
- [root@kubeaio microservices]# history
- 1 cat /etc/redhat-release
- 2 yum install -y git vim bash-completion
- 3 nmtui
- 4 git clone https://github.com/sandervanvugt/devopsinfourweeks
- 5 cd devopsinfourweeks/
- 6 ls
- 7 cd ..
- 8 git clone https://github.com/sandervanvugt/microservices
- 9 cd microservices/
- 10 ls
- 11 vim setup-docker.sh
- 12 ./setup-docker.sh
- 13 vim setup-kubetools.sh
- 14 ./setup-kubetools.sh
- 15 free -m
- 16 vim /etc/fstab
- 17 kubeadm init --pod-network-cidr=10.10.0.0/16
- 18 su - student
- 19 history
- ### RUN AS USER
- 1 mkdir .kube
- 2 sudo cp -i /etc/kubernetes/admin.conf .kube/config
- 3 chown student:student .kube/config
- 4 sudo chown student:student .kube/config
- 5 ls -l .kube/config
- 6 less .kube/config
- 7 kubectl get nodes
- 8 kubectl create -f https://docs.projectcalicao.org/manifests/tigera-operator.yaml
- 9 ping nu.nl
- 10 kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
- 11 kubectl get pods -n kube-system
- 12 wget https://docs.projectcalico.org/manifestes/custom-resources.yaml
- 13 sudo yum install wget -y
- 14 wget https://docs.projectcalico.org/manifestes/custom-resources.yaml
- 15 wget https://docs.projectcalico.org/manifests/custom-resources.yaml
- 16 vim custom-resources.yaml
- 17 kubectl create -f custom-resources.yaml
- 18 kubectl get pods -n calico-system
- 19 kubectl taint nodes --all node-role.kubernetes.io/master-
- 20 kubectl get all
- 21 kubectl get all -A
- 22 kubectl create deployment nginx --image=nginx
- 23 kubectl get all
- 24 ls
- 25 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement