Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@control:~/cka$ history
- 1 git clone https://github.com/sandervanvugt/cka
- 2 cd cka
- 3 ls *sh
- 4 vim setup-container.sh
- 5 ./setup-container.sh
- 6 ./setup-kubetools.sh
- 7 sudo ./setup-kubetools.sh
- 8 sudo vim /etc/fstab
- 9 sudo swapoff -a
- 10 free -m
- 11 sudo vim /etc/hosts
- 12 sudo -i
- 13 vim /tmp/todo.txt
- 14 top
- 15 cat /tmp/todo.txt
- 16 cd
- 17 mkdir -p .kube
- 18 sudo cp -i /etc/kubernetes/admin.conf .kube/config
- 19 sudo chown student:student .kube/config
- 20 kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
- 21 kubectl get all
- 22 kubectl get all -A
- 23 cat /tmp/todo.txt
- 24 kubectl get nodes
- 25 history
- 26 kubectl get nodes
- 27 history
- 28 cat /tmp/todo.txt
- 29 sudo kubeadm -h | less
- 30 history
- 31 cd cka
- 32 ls
- 33 history
- 34 kubectl get nodes
- 35 ./counter.sh 3
- 36 kubectl create ns mynamespace
- 37 kubectl run myalp --image=alpine -- sleep 3600 > myalp.yaml
- 38 vim myalp.yaml
- 39 kubectl run myalp --image=alpine -- sleep 3600 --dry-run=client -o yaml > myalp.yaml
- 40 kubectl delete pod myalp
- 41 kubectl run myalp --image=alpine --dry-run=client -o yaml -- sleep 3600
- 42 ./counter.sh 6
- 43 vim wk3.yaml
- 44 kubectl create -f wk3.yaml
- 45 kubectl get pods
- 46 kubectl describe pod exercise3
- 47 ./counter.sh 17
- 48 vim oinit.yaml
- 49 kubectl create -f oinit.yaml
- 50 kubectl get pods
- 51 kubectl describe pod init-demo
- 52 kubectl get pods -o wide
- 53 ./counter.sh 5
- 54 kubectl get nodes
- 55 kubectl edit node control
- 56 kubectl create deploy nginx --image=nginx --replicas=3
- 57 kubectl get pods -o wide
- 58 kubectl edit node control
- 59 kubectl get pods -o wide
- 60 kubectl completion -h
- 61 source <(kubectl completion bash)
- 62 kubectl scale deployment nginx --replicas=6
- 63 kubectl get pods -o wide
- 64 ./counter.sh 7
- 65 kubectl run nginx --dry-run=client -o yaml > static.yaml
- 66 kubectl run nginx --dry-run=client --image=nginx -o yaml > static.yaml
- 67 cat static.yaml
- 68 kubectl get pods
- 69 ./counter.sh 23
- 70 vim wg8.yaml
- 71 kubectl create -f wg8.yaml
- 72 kubectl describe pod pv-pod
- 73 kubectl describe pod pv-pod -n myvol
- 74 kubectl exec -it pv-pod -n myvol -- sh
- 75 kubectl get pvc
- 76 kubectl get pvc -n myvol
- 77 kubectl get pv
- 78 kubectl describe pv task-pv-volume
- 79 kubectl explain pv.spec | less
- 80 kubectl api-resources | less
- 81 kubectl create quota --help | less
- 82 kubectl set resources -h | less
- 83 history
- 84 ./counter.sh 8
- 85 #kubectl create quota qtest --hard pods=3,cpu=100,memory=500Mi --namespace limited
- 86 kubectl create ns limited
- 87 kubectl create quota qtest --hard pods=3,cpu=100,memory=500Mi --namespace limited
- 88 kubectl create deploy nginx --image=nginx --replicas=3 -n limited
- 89 kubectl get all -n limited
- 90 kubectl describe -n limited replicasets.apps nginx-85b98978db
- 91 kubectl describe ns limited
- 92 kubectl set resources deploy nginx --requests cpu=100m,memory=5Mi --limites cpu=200m,memory=20Mi -n limited
- 93 kubectl set resources deploy nginx --requests cpu=100m,memory=5Mi --limits cpu=200m,memory=20Mi -n limited
- 94 kubectl get pods -n limited
- 95 kubectl create deploy lmitbox --image=busybox --replicas=3 -- sleep 3000
- 96 kubectl get pods -n limited
- 97 kubectl get all -n limited
- 98 kubectl create deploy lmitbox --image=busybox --replicas=3 -n limited -- sleep 3000
- 99 kubectl get all -n limited
- 100 kubectl describe -n limited replicasets.apps lmitbox-6fdd4d7884
- 101 history
- 102 ./counter.sh 12
- 103 vim sr8.yaml
- 104 kubectl explain limitrange
- 105 kubectl explain quota
- 106 vim sr8.yaml
- 107 ./counter.sh 5
- 108 kubectl create app1 --image=nginx --replicas=3
- 109 kubectl create deploy app1 --image=nginx --replicas=3
- 110 kubectl create deploy app3 --image=nginx --replicas=3
- 111 kubectl label deployments.apps app1 app=working
- 112 kubectl label deployments.apps app1 type=working
- 113 kubectl label deployments.apps app3 type=working
- 114 kubectl get pods --selector type=working
- 115 kubectl get pods --show-labels
- 116 kubectl get pods --selector app=nginx
- 117 kubectl get pod -h | less
- 118 kubectl get pod exercise3 -o json | less
- 119 kubectl get pod -h | less
- 120 kubectl get pods --selector app=nginx -o wide
- 121 kubectl get pods --selector app=nginx -o wide --sort-by=.spec.nodeName
- 122 kubectl get pods --selector app=nginx -o wide --sort-by=.spec.nodeName > /tmp/sortlist.txt
- 123 cat /tmp/sortlist.txt
- 124 kubectl get pods -l app=nginx -o wide --sort-by=.spec.nodeName
- 125 ./counter.sh 5
- 126 vim df10.yaml
- 127 kubectl create deploy daemonploy --image=nginx --dry-run=client -o yaml > daemonploy.yaml
- 128 vim daemonploy.yaml
- 129 kubectl api-resources
- 130 kubectl create -f daemonploy.yaml
- 131 kubectl get ds,pods -o wide
- 132 kubectl get ds -A
- 133 history
Add Comment
Please, Sign In to add comment