Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost devopsinfourweeks]$ history
- 1 ip a
- 2 free -m
- 3 df -h
- 4 lscpu
- 5 sudo vim /etc/fstab
- 6 sudo vi /etc/fstab
- 7 sudo yum install -y vim git bash-completion wget
- 8 git clone https://github.com/sandervanvugt/devopsinfourweeks
- 9 cd devopsinfourweeks/
- 10 ls
- 11 sudo ./setup-docker.sh
- 12 systemctl status docker
- 13 sudo ./setup-kubetools.sh
- 14 free -m
- 15 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
- 16 cd
- 17 mkdir .kube
- 18 sudo cp /etc/kubernetes/admin.conf .kube/config
- 19 less .kube/config
- 20 sudo less .kube/config
- 21 sudo chown student:student .kube/config
- 22 kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
- 23 wget https://docs.projectcalico.org/manifests/custom-resources.yaml
- 24 vim custom-resources.yaml
- 25 kubectl create -f custom-resources.yaml
- 26 kubectl get pods -n calico-system
- 27 kubectl taint nodes --all node-role.kubernete.io/master-
- 28 kubectl taint nodes --all node-role.kubernetes.io/master-
- 29 kubectl get pods -n calico-system
- 30 kubectl get all
- 31 kubectl run myfirstpod --image=nginx
- 32 kubectl get pods
- 33 top
- 34 history
- 35 ls
- 36 cd devopsinfourweeks/
- 37 ls
- 38 ./counter.sh 12
- 39 cd ..
- 40 kubectl -h | less
- 41 kubectl create -h | less
- 42 kubectl create deployment -h | less
- 43 kubectl -h | less
- 44 kubectl completion -h
- 45 source <(kubectl completion bash)
- 46 exit
- 47 source <(kubectl completion bash)
- 48 kubectl api-resources | less
- 49 kubectl create deployment mydeploy --image=nginx
- 50 kubectl get all
- 51 kubectl scale deployment mydeploy --replicas=3
- 52 kubectl get all
- 53 kubectl delete pod mydeploy-7dff945675-4ln7f
- 54 kubectl get all
- 55 kubectl delete pod myfirstpod
- 56 kubectl get all
- 57 kubectl run busybox --image=busybox
- 58 kubectl get pods
- 59 kubectl describe pod busybox
- 60 kubectl run mymariadb mariadb
- 61 kubectl run mymariadb --image=mariadb
- 62 kubectl describe pod mymariadb
- 63 kubectl get pods
- 64 kubectl describe pods mymariadb
- 65 kubectl logs mymariadb
- 66 kubectl run -h
- 67 kubectl run mymariadb --image=mariadb --env=MYSQL_ROOT_PASSWORD=secret
- 68 kubectl delete pod mymariadb
- 69 kubectl run mymariadb --image=mariadb --env=MYSQL_ROOT_PASSWORD=secret
- 70 kubectl get pods
- 71 docker login
- 72 cd devopsinfourweeks/
- 73 ls
- 74 vim deploy-webserver.yaml
- 75 kubectl create -f deploy-webserver.yaml
- 76 vim deploy-webserver.yaml
- 77 kubectl create -f deploy-webserver.yaml
- 78 kubectl create deploy mynginx --image=nginx --replicas=3 --dry-run -o yaml > mynginx.yaml
- 79 kubectl create deploy mynginx --image=nginx --replicas=3 --dry-run=client -o yaml > mynginx.yaml
- 80 vim mynginx.yaml
- 81 kubectl run mybusybox --image=busybox --dry-run=client -o yaml > buysbox.yaml
- 82 vim buysbox.yaml
- 83 kubectl explain pods
- 84 kubectl explain pods.spec
- 85 vim buysbox.yaml
- 86 kubectl create -f buysbox.yaml
- 87 kubectl get pods
- 88 ./counter.sh 12
- 89 kubectl get deploy
- 90 kubectl get all --selector app=mydeploy
- 91 kubectl get all --selector app=mydeploy -o wide
- 92 kubectl expose deploy mydeploy --port=80 --type=NodePort
- 93 kubectl get svc
- 94 curl http://10.96.55.20
- 95 curl http://192.168.29.69:31817
- 96 ls
- 97 kubectl explain pods.spec.volumes | less
- 98 vim pv-pvc-pod.yaml
- 99 kubectl create -f pv-pvc-pod.yaml
- 100 kubectl get pv
- 101 kubectl get pvc
- 102 kubectl describe pod local-pv-pod
- 103 kubectl exec -it local-pv-pod -- touch /usr/share/nginx/html/hello
- 104 ubectl exec -it local-pv-pod -- touch /usr/share/nginx/html/hello
- 105 [student@localhost devopsinfourweeks]$
- 106 kubectl describe pv local-pv-volume
- 107 ls /mnt/data/
- 108 history
- 109 ./counter.sh 12
- 110 history | grep sql
- 111 history | grep MYSQL
- 112 kubectl create deploy mariadeploy --image=mariadb
- 113 kubectl get all --selector app=mariadb
- 114 kubectl get all --selector app=mariadeploy
- 115 kubectl set env deploy/mariadeploy MYSQL_ROOT_PASSWORD=secret
- 116 kubectl get all --selector app=mariadeploy
- 117 kubectl create cm myvars --from-literal=VAR1=goat --from-literal=VAR2=buffalo
- 118 kubectl describe cm myvars
- 119 vim cm-test-pod.yaml
- 120 kubectl create -f cm-test-pod.yaml
- 121 kubectl logs test1
- 122 kubectl create cm nginxconf --from-file nginx-custom-config.conf
- 123 cat nginx-custom-config.conf
- 124 kubectl describe cm nginxconf
- 125 vim nginx-cm.yml
- 126 kubectl create -f nginx-cm.yml
- 127 kubectl get pods
- 128 kubectl describe pods nginx-cm
- 129 kubectl get cm
- 130 kubectl create cm nginx-cm --from-file nginx-custom-config.conf
- 131 kubectl get pods
- 132 kubectl describe pods nginx-cm
- 133 kubectl get pdos
- 134 kubectl get pods
- 135 kubectl exec -it nginx-cm /bin/bash
- 136 kubectl api-resources | grep -i deploy
- 137 vim sslcerts-crd.yaml
- 138 kubectl create -f sslcerts-crd.yaml
- 139 vim my-sslcert.yaml
- 140 kubectl create -f my-sslcert.yaml
- 141 kubectl api-resources | grep example
- 142 kubectl explain sslconfigs
- 143 kubectl explain sslconfigs.spec
- 144 kubectl get deploy
- 145 kubectl delete deploy mariadeploy
- 146 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement