Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@student-virtual-machine:~/ckad$ history
- 1 sudo apt install vim git
- 2 cd ckad
- 3 ./countdown 15
- 4 ./countdown 13
- 5 ./countdown 1
- 6 git clone https://github.com/sandervanvugt/ckad
- 7 sudo apt install git vim -y
- 8 git clone https://github.com/sandervanvugt/ckad
- 9 cd ckad
- 10 ls
- 11 ./minikube-docker-setup.sh
- 12 minikube start --vm-driver=docker --cni=calico
- 13 kubectl get all
- 14 minikube ssh
- 15 kubectl get all
- 16 minikube status
- 17 minikube dashboard
- 18 kubectl get all
- 19 kubectl create deployment firstginx --image=nginx --replicas=3
- 20 kubectl get all
- 21 history
- 22 source <(kubectl completion bash)
- 23 sudo apt install bash-completion
- 24 kubectl -h
- 25 kubectl create -h | less
- 26 kubectl create deploy -h | less
- 27 history
- 28 cd
- 29 cd .kube/
- 30 cat config
- 31 kubectl config view
- 32 kubectl config set-context --current --namespace=mynamespace
- 33 kubectl config set-context --current --namespace=default
- 34 cd
- 35 cd ckad
- 36 ls
- 37 cd dockerfile/
- 38 ls
- 39 vim Dockerfile
- 40 docker build -t nmap .
- 41 docker images
- 42 docker save --help | less
- 43 docker save -o nmap.tar nmap
- 44 ls -l
- 45 cd ..
- 46 history
- 47 ./countdown 1
- 48 kubectl get pods
- 49 kubectl get pods firstginx-7c4fcf6b55-bk2c5 -o yaml| less
- 50 kubectl get all
- 51 kubectl delete deploy dashginx
- 52 kubectl get all
- 53 kubectl delete pod firstginx-7c4fcf6b55-bk2c5
- 54 kubectl get all
- 55 kubectl run -h | less
- 56 kubectl run nginx --image=nginx
- 57 kubectl get all
- 58 kubectl delete pod nginx
- 59 kubectl get all
- 60 kubectl describe pod firstginx-7c4fcf6b55-t4grh
- 61 history
- 62 kubectl get pods firstginx-7c4fcf6b55-bk2c5 -o yaml| less
- 63 kubectl get pods firstginx-7c4fcf6b55-t4grh -o yaml | less
- 64 kubectl explain pods
- 65 kubectl explain pods.spec | less
- 66 kubectl explain pods.spec.affinity | less
- 67 kubectl explain --recursive pods.spec
- 68 kubectl explain --recursive pods.spec | wc
- 69 kubectl run mynginx --image=nginx --dry-run=client -o yaml
- 70 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 71 vim sidecar.yaml
- 72 kubectl apply -f sidecar.yaml
- 73 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 74 kubectl get pods
- 75 vim sidecar.yaml
- 76 docker search httpd | grep centos
- 77 kubectl exec -it sidecar-pod -c sidecar -- /bin/bash
- 78 kubectl delete pod sidecar-pod
- 79 vim sidecard2.yaml
- 80 kubectl create -f sidecard2.yaml
- 81 vim sidecard2.yaml
- 82 kubectl create -f sidecard2.yaml
- 83 vim sidecard2.yaml
- 84 kubectl create -f sidecard2.yaml
- 85 kubectl get pods
- 86 kubectl describe pods two-containers
- 87 kubectl exec -it two-containers -c nginx-container -- sh
- 88 history
- 89 vim init-example1.yaml
- 90 kubectl apply -f init-example1.yaml
- 91 kubectl get pods
- 92 kubectl describe pods init-demo1
- 93 kubectl get pods
- 94 vim init-example2.yaml
- 95 kubectl create -f init-example2.yaml
- 96 kubectl get pods
- 97 sudo reboot
- 98 sudo -i
- 99 history | less
- 100 minikube start --vm-driver=docker --cni=calico
- 101 cd ckad
- 102 vim init-example1.yaml
- 103 kubectl get pods
- 104 kubectl delete pod init-demo1
- 105 vim init-example1.yaml
- 106 kubectl create -f init-example1.yaml
- 107 kubectl get pods
- 108 wget -O http://info.cern.ch
- 109 wget -O /tmp/index.html http://info.cern.ch
- 110 cat /tmp/index.html
- 111 source <(kubectl completion bash)
- 112 kubectl describe pod init-demo1
- 113 kubectl logs init-demo1
- 114 kubectl logs init-demo1 -c install
- 115 wget -O /tmp/index.html http://info.cern.ch
- 116 kubectl exec -it init-demo1 -c install -- bash
- 117 kubectl exec -it init-demo1 -c install -- sh
- 118 kubectl run mydb --image=mariadb
- 119 kubectl get pods
- 120 kubectl describe pod mydb
- 121 kubectl logs mydb
- 122 kubectl delete pod mydb
- 123 kubectl run -h | less
- 124 kubectl run mydb --image=mariadb --env MARIADB_ROOT_PASSWORD=password
- 125 kubectl get pods
- 126 kubectl run busy --image=busybox
- 127 kubectl get pods
- 128 kubectl describe pod busy
- 129 kubectl get pods busy -o yaml
- 130 kubectl get pods
- 131 kubectl get ns
- 132 kubectl get pods -n default
- 133 kubectl get pods -n kube-system
- 134 kubectl get all -n kubernetes-dashboard
- 135 kubectl describe ns kube-system
- 136 kubectl get all -A
- 137 kubectl get pods -A
- 138 kubectl create ns secret
- 139 kubectl run secretpod --image=nginx -n secret
- 140 kubectl get pods
- 141 kubectl get pods -n secret
- 142 kubectl config set-context --current --namespace=secret
- 143 kubectl get all
- 144 kubectl config set-context --current --namespace=default
- 145 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement