Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- student@control:~/kube3weeks$ history
- 1 git clone https://github.com/sandervanvugt/cka
- 2 cd cka
- 3 ls
- 4 ls *sh
- 5 sudo setup-container.sh
- 6 sudo ./setup-container.sh
- 7 ls *sh
- 8 sudo ./setup-kubetools.sh
- 9 history
- 10 sudo kubeadm init
- 11 history
- 12 mkdir -p $HOME/.kube
- 13 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
- 14 sudo chown $(id -u):$(id -g) $HOME/.kube/config
- 15 kubectl get all
- 16 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/tigera-operator.yaml
- 17 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
- 18 kubectl get pods -n calico-system
- 19 history
- 20 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml
- 21 kubectl get pods -n calico-system
- 22 kubectl get ns
- 23 kubectl get pods -n kube-system
- 24 history
- 25 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/calico.yaml
- 26 history
- 27 cd
- 28 git clone https://github.com/sandervanvugt/kube3weeks
- 29 cd kube3weeks/
- 30 ls -l *sh
- 31 chmod +x setup-calico.sh
- 32 history
- 33 kubectl get pods -n calico-system
- 34 kubectl get pods -n kube-system
- 35 kubectl get nodes
- 36 kubectl run testapp --image=nginx
- 37 history
- 38 git pull
- 39 less setup-kubecluster-history.txt
- 40 git pull
- 41 less setup-kubecluster-history.txt
- 42 cd
- 43 source <(kubectl completion bash)
- 44 kubectl completion -h | less
- 45 kubectl create deployment myfirstapp --image=nginx --replicas=3
- 46 kubectl get all
- 47 kubectl delete pods myfirstapp-564cb9865d-czm74
- 48 kubectl get all
- 49 kubectl run lonelypod --image=nginx
- 50 kubectl get all
- 51 kubectl get pods
- 52 kubectl delete pod lonelypod
- 53 kubectl get all
- 54 history
- 55 kubectl api-resources | less
- 56 kubectl explain pods
- 57 kubectl explain pod.spec | less
- 58 cd kube3weeks/
- 59 ls
- 60 kubectl get pods
- 61 kubectl get pods testapp -o yaml | less
- 62 history
- 63 kubectl explain nodes.spec | less
- 64 history | grep yaml
- 65 wget https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/calico.yaml
- 66 vim calico.yaml
- 67 kubectl run mynginx --image=nginx --dry-run=client -o yaml
- 68 kubectl run mynginx --image=nginx --dry-run=client -o yaml > mynginx.yaml
- 69 vim mynginx.yaml
- 70 kubectl explain pod.spec
- 71 vim mynginx.yaml
- 72 kubectl apply -f mynginx.yaml
- 73 vim mynginx.yaml
- 74 kubectl apply -f mynginx.yaml
- 75 kubectl get pods
- 76 vim mynginx.yaml
- 77 kubectl apply -f mynginx.yaml
- 78 kubectl delete -f mynginx.yaml
- 79 kubectl apply -f mynginx.yaml
- 80 history
- 81 kubectl delete -f mynginx.yaml
- 82 vim multicontainer.yaml
- 83 kubectl create -f multicontainer.yaml
- 84 kubectl get pods
- 85 kubectl explain pod.spec | less
- 86 history
- 87 vim mynginx.yaml
- 88 kubectl create deploy yamltest --image=nginx --replicas=3 --dry-run=client -o yaml
- 89 vim initstuff.yaml
- 90 kubectl apply -f initstuff.yaml
- 91 kubectl get pods
- 92 vim initstuff.yaml
- 93 kubectl apply -f initstuff.yaml
- 94 vim initstuff.yaml
- 95 kubectl apply -f initstuff.yaml
- 96 kubectl get pods
- 97 kubectl get ns
- 98 kubectl get pods
- 99 kubectl get pods -n kube-system
- 100 kubectl get pods -n tigera-operator
- 101 kubectl get pods -A
- 102 kubectl get all -A
- 103 kubectl get pods -n kube-system
- 104 kubectl create ns secret
- 105 kubectl run secretapp --image=nginx -n secret
- 106 kubectl get pods
- 107 kubectl get pods -n secret
- 108 kubectl config set-context --current --namespace=secret
- 109 kubectl get pods
- 110 kubectl config view
- 111 kubectl config set-context --current --namespace=default
- 112 kubectl run mydb --image=mariadb
- 113 kubectl get pods
- 114 kubectl describe pod mydb | less
- 115 kubectl logs mydb
- 116 kubectl delete pod mydb
- 117 kubectl run mydb --image=mariadb -e MARIADB_ROOT_PASSWORD=password
- 118 kubectl run mydb --image=mariadb --env MARIADB_ROOT_PASSWORD=password
- 119 kubectl run -h | less
- 120 kubectl options
- 121 kubectl options | wc
- 122 kubectl get pods
- 123 kubectl run mydb --image=mariadb --env MARIADB_ROOT_PASSWORD=password --dry-run=client -o yaml > mydb.yaml
- 124 vim mydb.yaml
- 125 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement