Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@kube1 ckad]$ history
- 1 echo welcome to class we are starting at 9:00
- 2 sudo -i
- 3 sudo git clone https://github.com/sandervanvugt/ckad
- 4 cd ckad
- 5 ls
- 6 sudo ./setup-docker.sh
- 7 sudo ./setup-kubetools.sh
- 8 sudo systemctl status dockerd
- 9 sudo systemctl status docker
- 10 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
- 11 mkdir .kube
- 12 pwd
- 13 ls -a
- 14 cd ..
- 15 mkdir .kube
- 16 sudo cp -i /etc/kubernetes/admin.conf .kube/config
- 17 sudo chown student:student .kube/config
- 18 ls -l .kube/config
- 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 kubectl taint nodes --all node-role.kubernetes.io/master-
- 25 kubectl get pods -n calico-system
- 26 kubectl get all
- 27 history
- 28 ip a
- 29 kubectl create deployment nginx
- 30 kubectl create deployment mynginx --image=nginx --replicas=3
- 31 kubectl get all
- 32 kubectl explain pods
- 33 kubectl explain pods.sopec
- 34 kubectl explain pods.spec
- 35 sudo poweroff
- 36 history
- 37 kubectl get all
- 38 kubectl delete pod mynginx-5b686ccd46-zbhlt
- 39 kubectl get all
- 40 history
- 41 kubectl get all
- 42 kubectl run -h | less
- 43 kubectl run nginx --image=nginx
- 44 kubectl get all
- 45 kubectl delete pod nginx
- 46 kubectl get all
- 47 kubectl create deployment mynginx --image=nginx --replicas=3
- 48 history | grep taint
- 49 kubectl get pods
- 50 kubectl get pods -A
- 51 kubectl config view
- 52 kubectl -h
- 53 kubectl completion -h
- 54 source <(kubectl completion bash)
- 55 kubectl get pods mynginx-5b686ccd46-jwr2h
- 56 kubectl completion -h
- 57 kubectl api-resources | less
- 58 kubectl explain pods
- 59 kubectl explain pods.spec
- 60 kubectl explain deployment.spec
- 61 kubectl run -h | less
- 62 kubectl run mymariadb --image=mariadb
- 63 kubectl get pods
- 64 kubectl describe pod mymariadb
- 65 kubectl describe pod mymariadb | less
- 66 kubectl run mybusybox --image=busybox
- 67 kubectl get pods
- 68 kubectl get pods -w
- 69 kubectl describe pod mybusybox
- 70 bash
- 71 ls
- 72 kubectl logs mymariadb
- 73 kubectl delete pod mymariadb
- 74 kubectl run pod -h
- 75 kubectl run mymariadb --image=mariadb --env="MYSQL_ROOT_PASSWORD=password"
- 76 kubectl get pods
- 77 history
- 78 kubectl logs -h
- 79 kubectl logs mymariadb
- 80 history
- 81 cd ckad
- 82 ls
- 83 vim busybox.yaml
- 84 cd ..
- 85 ls -l
- 86 sudo chown -R student:student ckad
- 87 kubectl run myfile --image=nginx --dry-run -o yaml > myfile.yaml
- 88 vim myfile.yaml
- 89 kubectl explain pod
- 90 kubectl explain pod.spec
- 91 kubectl explain pod.spec.containers
- 92 kubectl get pods
- 93 kubectl exec -it mynginx-5b686ccd46-2w947 sh
- 94 kubectl create mydeploy --image=mariadb --replicas=3 --dry-run=client -o yaml > mydeploy.yaml
- 95 kubectl create -h | less
- 96 kubectl create deploy mydeploy --image=mariadb --replicas=3 --dry-run=client -o yaml > mydeploy.yaml
- 97 vim mydeploy.yaml
- 98 kubectl explain deploy.spec
- 99 kubectl create -f mydeploy.yaml
- 100 kubectl get all
- 101 kubectl get all --selector app=mydeploy
- 102 kubectl set -h | less
- 103 kubectl set env -h | less
- 104 kubectl set env deploy/mydeploy MYSQL_ROOT_PASSWORD=password
- 105 kubectl get all --selector app=mydeploy
- 106 history
- 107 kubectl set env -h | less
- 108 kubectl run anotherone --image=mariadb
- 109 kubectl get pods
- 110 kubectl set env pod/anotherone MYSQL_ROOT_PASSWORD=password
- 111 kubectl rollout -h
- 112 kubectl create deploy nginxsvc --image=nginx
- 113 kubectl scale deploy nginxsvc --replicas=3
- 114 kubectl expose deploy nginxsvc --port=80
- 115 kubectl get all --selector app=nginxsvc
- 116 kubectl describe svc nginxsvc
- 117 kubectl get endpoints
- 118 curl http://10.108.80.155
- 119 kubectl edit svc nginxsvc
- 120 kubectl get svc
- 121 ip a
- 122 curl http://192.168.29.63:32000
- 123 cd ckad
- 124 ls
- 125 vim morevolumes.yaml
- 126 kubectl create -f morevolumes.yaml
- 127 kubectl describe pod morevol2
- 128 kubectl get pods
- 129 kubectl exec -it morevol2 -c centos1 -- touch /centos1/hellofile
- 130 kubectl exec -it morevol2 -c centos2 -- ls /centos2/
- 131 kubectl explain pods.spec.volumes
- 132 ls
- 133 vim pv-pvc-pod.yaml
- 134 kubectl create -f pv-pvc-pod.yaml
- 135 kubectl create ns myvol
- 136 kubectl create -f pv-pvc-pod.yaml
- 137 kubectl get pvc -n myvol
- 138 vim pv-pvc-pod.yaml
- 139 kubectl exec -it local-pv-pod -- touch /usr/share/nginx/html/myfile
- 140 kubectl exec -it local-pv-pod -n myvol -- touch /usr/share/nginx/html/myfile
- 141 vim pv-pvc-pod.yaml
- 142 ls /mnt
- 143 ls /mnt/data
- 144 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement