Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/kcna$ history
- 1 minikube start --vm-driver=docker --cni=calico
- 2 minikube status
- 3 kubectl get all
- 4 source <(kubectl completion bash)
- 5 kubectl create deploy nginx --image=nginx --replicas=3
- 6 kubectl get all
- 7 kubectl create deploy nginx --image=nginx --replicas=3
- 8 kubectl get all
- 9 kubectl delete pod nginx-748c667d99-875qg
- 10 kubectl get all
- 11 history
- 12 minikube addons list
- 13 less ~/.kube/config
- 14 kubectl get clusterroles -A | less
- 15 kubectl get clusterroles
- 16 kubectl get clusterroles edit -o yaml
- 17 history
- 18 ssh 192.168.29.162
- 19 history
- 20 sudo poweroff
- 21 sudo apt install -y vim git
- 22 git clone https://github.com/sandervanvugt/kcna
- 23 cd kcna/
- 24 ls
- 25 ./minikube-docker-setup.sh
- 26 minikube start
- 27 minikube ssh
- 28 kubectl api-resources
- 29 kubectl api-resources | wc
- 30 kubectl explain pod
- 31 kubectl explain pod.spec | less
- 32 cd kcna/
- 33 history | grep git
- 34 ls
- 35 vim pvc-pod.yaml
- 36 kubectl api-resources | less
- 37 kubectl create deploy myweb --image=nginx
- 38 kubectl get all
- 39 kubectl get deploy myweb -o yaml | less
- 40 kubectl create deploy myweb --image=nginx --dry-run=client -o yaml
- 41 kubectl create deploy myweb --image=nginx --dry-run=client -o yaml > myweb.yaml
- 42 source <(kubectl completion bash)
- 43 kubectl create deployment -h | less
- 44 kubectl api-versions
- 45 kubectl explain deployment.spec
- 46 kubectl explain deployment.spec.strategy
- 47 kubectl explain deployment.spec.strategy.type
- 48 kubectl explain --recursive pod.spec | less
- 49 ls -lrt
- 50 kubectl create -f myweb.yaml
- 51 kubectl get all
- 52 kubectl delete deployments.apps myweb
- 53 kubectl get all
- 54 kubectl create -f myweb.yaml
- 55 kubectl delete -f myweb.yaml
- 56 kubectl apply -f myweb.yaml
- 57 minikube addons list
- 58 minikube addons enable dashboard
- 59 minikube dashboard
- 60 ./countdown 12
- 61 kubectl describe pod myweb-5b7f574f7f-pr4gb | less
- 62 kubectl get all
- 63 kubectl delete pod nginx-748c667d99-6l6qr
- 64 kubectl get all
- 65 kubectl scale deployment nginx --replicas 2
- 66 kubectl run myapp --image=nginx
- 67 kubectl get all
- 68 kubectl delete pod myapp
- 69 kubectl get all
- 70 kubectl edit deployments.apps myweb
- 71 kubectl get all
- 72 kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/components.yaml
- 73 kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
- 74 kubectl get pods -n kube-system
- 75 kubectl logs -n kube-system metrics-server-6f6cdbf67d-sfdvr
- 76 kubectl edit deployments.apps -n kube-system metrics-server
- 77 kubectl get deploy,pods -n kube-system
- 78 kubectl top pods
- 79 cd autoscaling/
- 80 ls
- 81 docker
- 82 sudo docker build -t php-apache .
- 83 vim hpa.yaml
- 84 kubectl apply -f hpa.yaml
- 85 kubectl autoscale deployment php-apache --cpu-percent=10 --min=1 --max=10
- 86 kubectl get hpa
- 87 kubectl get pods
- 88 sleep 60; kubectl get hpa
- 89 ../countdown 12
- 90 kubectl create deploy ngxsvc --image=nginx --replicas=3
- 91 kubectl expose deployment ngxsvc --port=80
- 92 kubectl describe svc ngxsvc
- 93 kubectl scale deployment ngxsvc --replicas=5
- 94 kubectl describe svc ngxsvc
- 95 kubectl get svc
- 96 curl 10.110.129.0
- 97 minikube ssh
- 98 kubectl edit svc ngxsvc
- 99 kubectl get svc
- 100 curl 192.168.49.2:30219
- 101 cd ..
- 102 vim pv.yaml
- 103 kubectl apply -f pv.yaml
- 104 vim pvc.yaml
- 105 kubectl apply -f pvc.yaml
- 106 kubectl get pv,pvc
- 107 kubectl get storageclass
- 108 vim pv-pod.yaml
- 109 kubectl apply -f pv-pod.yaml
- 110 kubectl exec pv-pod -- touch /usr/share/nginx/html/newfile.blah
- 111 kubectl describe pv pvc-f85b1195-e539-4851-838e-6f94124a0224
- 112 minikube ssh
- 113 vim varsfile
- 114 kubectl create cm mydbvars --from-env-file=varsfile
- 115 kubectl describe cm mydbvars
- 116 kubectl create deploy mydb --image=mariadb --replicas=3
- 117 kubectl get all --selector app=mydb
- 118 kubectl logs mydb-7978c6b495-6hcxk
- 119 kubectl set env deploy mydb --from=configmap/mydbvars
- 120 kubectl get all --selector app=mydb
- 121 ./countdown 10
- 122 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement