Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2 git clone https://github.com/sandervanvugt/kub4h
- 3 cat kub4h/kube-setup.sh
- 4 minikube start --memory 4096 --vm-driver=kvm2
- 5 minikube status
- 6 kubectl get all
- 7 sudo -i
- 8 history
- 9 cd kub4h/
- 10 ls
- 11 vim kube-setup.sh
- 12 history
- 13 id
- 14 minikube status
- 15 free -m
- 16 minikube ssh
- 17 kubectl get all
- 18 kubectl get all --all-namespaces
- 19 minikube dashboard
- 20 bg
- 21 history
- 22 kubectl get all
- 23 kubectl delete pod/firstnginx-7bf974b77f-jfljv
- 24 kubectl get all
- 25 ls
- 26 ./countdown 12
- 27 kubectl --help
- 28 kubectl --help | less
- 29 kubectl completion -h | less
- 30 source <(kubectl completion bash)
- 31 sudo rpm -qa | grep bash-c
- 32 kubectl api-resources | less
- 33 kubectl explain pods
- 34 kubectl explain pods.spec | less
- 35 kubectl explain pods.spec.containers
- 36 kubectl create -h |less
- 37 kubectl create deployment -h | less
- 38 kubectl create deployment my-dep --image=busybox
- 39 kubectl get all
- 40 kubectl describe pod my-dep-6f9f87db6f-px6gh
- 41 kubectl explain pods.spec
- 42 kubectl get all
- 43 history
- 44 kubectl proxy --port=8001 &
- 45 curl http://localhost:8001/version
- 46 curl http://localhost:8001/api/v1/namespaces/default/pods | less
- 47 curl http://localhost:8001/api/v1/namespaces/default/pods/firstnginx-7bf974b77f-nx5wl
- 48 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/firstnginx-7bf974b77f-nx5wl
- 49 kubectl get pods
- 50 kubectl get services
- 51 kubectl describe services firstnginx
- 52 kubectl run ghost --image=ghost:0.9
- 53 kubectl get all
- 54 ./countdown 12
- 55 ls
- 56 vim busybox.yaml
- 57 kubectl create -f busybox.yaml
- 58 kubectl get pods
- 59 kubectl get pods busybox2 -o yaml | less
- 60 kubectl get pods busybox2 -o yaml > mymanifest.yaml
- 61 vim mymanifest.yaml
- 62 kubectl run -h
- 63 kubectl run -h | less
- 64 kubectl run secondnginx --image=nginx --dry-run -o yaml
- 65 kubectl get pods -o wide
- 66 kubectl get pods --show-labels
- 67 kubectl get all --selector run=ghosts
- 68 kubectl get all --selector run=ghost
- 69 kubectl get all --selector app=my-dep
- 70 kubectl get all --selector app=my-dep --show-labels
- 71 kubectl get all
- 72 kubectl get svc
- 73 kubectl get all --show-labels
- 74 kubectl get all --selector k8s-app=firstnginx
- 75 kubectl get pods
- 76 kubectl get deployments
- 77 kubectl get all --show-namespaces
- 78 kubectl get all
- 79 kubectl get all --all-namespaces
- 80 kubectl get ns
- 81 kubectl create ns secret
- 82 vim busybox.yaml
- 83 kubectl apply -f busybox.yaml
- 84 kubectl get pods -A
- 85 history
- 86 kubectl get pods
- 87 kubectl describe pod my-dep-6f9f87db6f-px6gh
- 88 kubectl get pods
- 89 kubectl logs my-dep-6f9f87db6f-px6gh
- 90 kubectl logs firstnginx-7bf974b77f-
- 91 kubectl logs firstnginx-7bf974b77f-wtlsq
- 92 historty
- 93 history
- 94 kubectl get pods
- 95 kubectl exec -it busybox2 ls -l
- 96 kubectl exec -it busybox2 -- ls -l
- 97 kubectl exec -it busybox2 -- sh
- 98 ls
- 99 cat morevolumes.yaml
- 100 kubectl apply -f morevolumes.yaml
- 101 kubectl get pods
- 102 kubectl exec -it morevol2 -- ls
- 103 kubectl describe pod/morevol2 -n default
- 104 kubectl exec -it morevol2 -c centos2 -- ls
- 105 kubectl describe deployment | less
- 106 kubectl explain deployment | less
- 107 kubectl explain deployment.spec | less
- 108 kubectl get pods --show-labels
- 109 kubectl get all --selector k8s-app=firstnginx
- 110 kubectl delete pod firstnginx-7bf974b77f-wtlsq
- 111 kubectl get all --selector k8s-app=firstnginx
- 112 kubectl delete replicasets.apps firstnginx-7bf974b77f
- 113 kubectl get all --selector k8s-app=firstnginx
- 114 kubectl scale deployment --replicas=5 firstnginx
- 115 kubectl get all --selector k8s-app=firstnginx
- 116 history
- 117 ./countdown 12
- 118 kubectl get deploy
- 119 kubectl expose deployment -h
- 120 kubectl expose deployment firstnginx --port=80
- 121 kubectl get svc
- 122 kubectl get endpoints
- 123 minikube ssh
- 124 kubectl delete service firstnginx
- 125 kubectl get deploy
- 126 kubectl expose deployment firstnginx --port=80 --type=NodePort
- 127 kubectl get svc
- 128 minikube ip
- 129 curl 192.168.39.184:31722
- 130 kubectl explain pods.spec.volumes
- 131 kubectl explain pods.spec.volumes | less
- 132 vim morevolumes.yaml
- 133 kubectl describe pods morevol2
- 134 kubectl exec -it morevol2 -c centos1 -- touch /centos1/testfile
- 135 kubectl exec -it morevol2 -c centos2 -- ls -l /centos2/
- 136 vim morevolumes.yaml
- 137 ls
- 138 vim nfs-pv.yaml
- 139 kubectl create -f nfs-pv.yaml
- 140 vim nfs-pvc.yaml
- 141 kubectl get pv
- 142 kubectl create -f nfs-pvc.yaml
- 143 kubectl get pv
- 144 vim nfs-pv-pod.yaml
- 145 kubectl create -f nfs-pv-pod.yaml
- 146 kubectl get pods
- 147 kubectl describe nfs-pv-pod
- 148 kubectl describe pod nfs-pv-pod
- 149 history
Add Comment
Please, Sign In to add comment