1 hostnamectl 2 sudo set hostnamectl lfs458-master 3 sudo hostnamectl set lfs458-master 4 sudo hostnamectl set-hostname lfs458-master 5 sudo vim /etc/hosts 6 ls -l /etc/cloud/cloud.cfg 7 sudo vim /etc/cloud/build.info 8 reboot 9 sudo reboot 10 sudo -i 11 mkdir -p $HOME/.kube 12 sudo cp -i /etc/kubernetes/admin.conf /home/ubuntu/.kube/ 13 less .kube/config 14 sudo cp -i /etc/kubernetes/admin.conf /home/ubuntu/.kube/config 15 less .kube/config 16 sudo chown $(id -u):$(id -g) /home/ubuntu/.kube/config 17 less .kube/config 18 sudo cp /root/rbac-kdd.yaml . 19 kubectl apply -f rbac-kdd.yaml 20 sudo cp /root/calico.yaml 21 sudo cp /root/calico.yaml . 22 kubectl apply -f calico.yaml 23 source <(kubectl completion bash) 24 kubectl get nodes 25 kubectl apply -f calico.yaml 26 sudo 27 sudo -i 28 kubectl get nodes 29 sudo -i 30 kubectl get nodes 31 kubectl get pod --all-namespaces 32 vim shellinabox.yaml 33 kubectl create -f shellinabox.yaml 34 kubectl get pod --all-namespaces 35 kubectl get pod 36 kubectl describe shellinabox.yaml 37 kubectl describe shellinabox 38 kubectl describe deployments shellinabox 39 kubectl get deployments. 40 kubectl get deployments 41 kubectl get service 42 ip a 43 curl 10.105.240.255 44 curl 10.105.240.255:4200 45 kubectl get ep shellinabox 46 curl 172.20.197:4200 47 curl 172.20.1.197:4200 48 kubectl describe service shellinabox 49 kubectl get ep shellinabox 50 kubectl get service 51 kubectl expose svc service shellinabox 52 kubectl expose svc service shellinabox --type=LoadBalancer 53 kubectl get service 54 kubectl expose service shellinabox --type=NodePort --name=ShellExtern 55 kubectl expose service shellinabox --type=NodePort 56 kubectl describe service 57 vim shellinabox.yaml 58 kubectl expose deployment shellinabox 59 kubectl expose service shellinabox 60 kubectl get ep 61 kubectl delete endpoints shellinabox 62 kubectl get ep 63 kubectl expose service shellinabox --type=NodePort 64 kubectl expose service shelext --type=NodePort --name=shellinabox 65 kubectl expose service shelext --type=NodePort 66 kubectl expose service shellinabox --type=NodePort 67 kubectl delete service shellinabox 68 kubectl expose service shellinabox --type=NodePort 69 vim shellinabox.yaml 70 kubectl create -f shellinabox.yaml 71 vim shellinabox.yaml 72 kubectl create -f shellinabox.yaml 73 kubectl delete service shellinabox 74 kubectl create -f shellinabox.yaml 75 kubectl get ep 76 kubectl delete service shellinabox 77 vim shellinabox.yaml 78 kubectl delete service shellinabox 79 kubectl create -f shellinabox.yaml 80 kubectl get ep 81 kubectl delete replicationcontrollers shellinabox 82 kubectl get ep 83 kubectl delete service shellinabox 84 kubectl get ep 85 kubectl create -f shellinabox.yaml 86 vim shellinabox.yaml 87 kubectl delete service shellinabox 88 kubectl delete replicationcontrollers shellinabox 89 kubectl create -f shellinabox.yaml 90 kubectl delete replicationcontrollers shellinabox 91 kubectl delete service shellinabox 92 vim shellinabox.yaml 93 kubectl create -f shellinabox.yaml 94 kubectl get ep 95 vim shellinabox.yaml 96 kubectl get e 97 kubectl get ep 98 kubectl get nodes 99 kubectl get svc -all-namespaces 100 kubectl get svc --all-namespaces 101 kubectl describe service 102 curl http://192.168.122.103:30201 103 kubectl describe pod | grep -B5 -A6 Node: 104 kubectl describe pod 105 vim shellinabox.yaml 106 kubectl expose svc shellinabox 107 kubectl expose svc shellinabox --type=Nodeport 108 kubectl expose svc shellinabox --type=NodePort 109 kubectl get svc 110 kubectl get ep 111 kubectl delete service shellinabox 112 kubectl delete replicationcontrollers shellinabox 113 vim shellinabox.yaml 114 mv shellinabox.yaml shell2web.yaml 115 kubectl create -f shell2web.yaml 116 vim shellinabox.yaml 117 vim shell2web.yaml 118 kubectl delete replicationcontrollers shellinabox 119 kubectl delete srv shell2web.yaml 120 kubectl delete srv shell2web 121 kubectl create -f shell2web.yaml 122 kubectl delete replicationcontrollers shell2web 123 kubectl 124 kubectl delete service shell2web 125 kubectl delete srv shell2web 126 kubectl create -f shell2web.yaml 127* 128 source <(kubectl completion bash) 129 kubectl delete service shell2web 130 kubectl delete replicationcontrollers shell2web 131 vim shell2web.yaml 132 kubectl create -f shell2web.yaml 133 kubectl get ep 134 kubectl describe service shell2web 135 helm 136 wget goo.gl/nbEcHn 137 tar -xvf nbEcHn 138 sudo cp linux-amd64/helm /usr/local/bin/ 139 kubectl create serviceaccount --namespace kube-system sec-helm 140 kubectl create clusterrolebinding sec-helm-cluster-role --clusterrole=cluster-admin --serviceaccount=kube-system:sec-helm 141 helm init 142 kubectl -n kube-system patch deployment tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"sec-helm"}}}} 143 kubectl -n kube-system patch deployment tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"sec-helm"}}}}' 144 kubectl get pod --all-namespaces 145 helm install --name timkonings.nl stable/wordpress 146 history > commandsdag4.txt