Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/kubernetes$ history
- 1 minikube start --vm-driver=docker --cni=calico --memory=4G
- 2 kubectl get all
- 3 ls
- 4 ./countdown 15
- 5 minikube dashboard
- 6 bg
- 7 kubectl get all
- 8 kubectl -h | less
- 9 kubectl create -h | less
- 10 kubectl create deploy -h | less
- 11 kubectl create deployment secondx --image=nginx --replicas=3
- 12 kubectl get all
- 13 kubectl delete deploy newapp
- 14 kubectl completion -h | less
- 15 source <(kubectl completion bash)
- 16 history
- 17 kubectl explain pod.spec | less
- 18 kubectl get deploy
- 19 kubectl get deploy secondx -o yaml | less
- 20 kubectl get rs secondx-584874b97f -o yaml | less
- 21 kubectl get all
- 22 history
- 23 kubectl get all
- 24 kubectl delete pod secondx-584874b97f-jhshq
- 25 kubectl get all
- 26 kubectl run -h | less
- 27 kubectl run hazelcast --image=hazelcast/hazelcast --port=5701
- 28 kubectl get all
- 29 kubectl delete pod hazelcast
- 30 kubectl get all
- 31 history
- 32 kubectl create deploy whateverdb --image=mariadb --replicas=3
- 33 kubectl get all
- 34 kubectl get all --show-labels
- 35 kubectl get all --selector app=secondx
- 36 history
- 37 kubectl get pods
- 38 kubectl get pods -A
- 39 kubectl describe pods whateverdb-54c77c6fff-5cf2q
- 40 history
- 41 while true; do sleep 10; done
- 42 ./countdown 12
- 43 kubectl create deployment mynginx --image=nginx --replicas=3 --dry-run=client -o yaml
- 44 kubectl create deployment mynginx --image=nginx --replicas=3 --dry-run=client -o yaml > mynginx.yaml
- 45 vim mynginx.yaml
- 46 kubectl create -f mynginx.yaml
- 47 kubectl get all
- 48 kubectl delete -f mynginx.yaml
- 49 kubectl apply -f mynginx.yaml
- 50 kubectl get deploy mynginx -o yaml | less
- 51 kubectl api-resources | less
- 52 history
- 53 kubectl get ns
- 54 kubectl get pods -n kube-system
- 55 kubectl create ns secret
- 56 kubectl create deploy secretweb --image=nginx -n secret
- 57 kubectl get deploy
- 58 kubectl get deploy -n secret
- 59 history
- 60 kubectl run -h | less
- 61 kubectl run something --image=busybox -- echo hello
- 62 kubectl logs something
- 63 kubectl get pods
- 64 kubectl get pods something -o yaml | less
- 65 kubectl describe pod something | less
- 66 kubectl exec -it mynginx-ff886775c-28ftz -- sh
- 67 kubectl get pods
- 68 kubectl describe pod whateverdb-54c77c6fff-bcrrs
- 69 kubectl logs whateverdb-54c77c6fff-bcrrs
- 70 kubectl get all --selector app=whateverdb
- 71 kubectl set -h
- 72 kubectl set env -h
- 73 kubectl set env -h | less
- 74 kubectl set env deploy/whateverdb MARIADB_ROOT_PASSWORD=password
- 75 kubectl get all --selector app=whateverdb
- 76 ./countdown 12
- 77 kubectl create deploy nginxsvc --image=nginx
- 78 kubectl get all --selector app=nginxsvc
- 79 kubectl scale deployment nginxsvc --replicas=3
- 80 kubectl get pods -o wide
- 81 kubectl expose deploy nginxsvc --port=80
- 82 kubectl get all --selector app=nginxsvc
- 83 kubectl describe svc nginxsvc
- 84 kubectl get endpoints
- 85 curl 10.106.254.141
- 86 minikube ip
- 87 minikube ssh
- 88 kubectl get svc
- 89 kubectl edit svc nginxsvc
- 90 kubectl get svc
- 91 minikube ip
- 92 curl 192.168.49.2:32485
- 93 history
- 94 kubectl explain pod.spec.volumes | less
- 95 vim morevolumes.yaml
- 96 kubectl create -f morevolumes.yaml
- 97 kubectl get pods
- 98 kubectl describe pods morevol | less
- 99 kubectl exec -it morevol -c centos1 -- touch /centos1/test
- 100 kubectl exec -it morevol -c centos2 -- ls /centos2/
- 101 kubectl create deploy mynewdb --image=mariadb --replicas=3
- 102 kubectl get all --selector app=mynewdb
- 103 kubectl create cm mynewdbvars --from-literal=MYSQL_ROOT_PASSWORD=password
- 104 kubectl describe cm mynewdbvars
- 105 kubectl set env --from=configmap/mynewdbvars deploy/mynewdb
- 106 kubectl get all --selector app=mynewdb
- 107 kubectl get deploy -o yaml
- 108 history
- 109 kubectl create secret -h | less
- 110 kubectl create secret generic -h | less
- 111 kubectl create secret generic --from-literal=mypw=secret
- 112 kubectl create secret generic mysecret --from-literal=mypw=secret
- 113 kubectl get secret
- 114 kubectl get secret -o yaml
- 115 echo c2VjcmV0 | base64 -d
- 116 kubectl describe secret mysecret
- 117 history
Add Comment
Please, Sign In to add comment