Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 76 source <(kubectl completion bash)
- 77 kubectl create deployment blue-nginx --image=nginx:1.14 --replicas=3
- 78 kubectl get deploy
- 79 kubectl delete deploy labdb
- 80 kubectl delete deploy mydb
- 81 kubectl delete deploy mynginx
- 82 kubectl delete deploy noname
- 83 kubectl get all
- 84 kubectl expose deployment blue-nginx --port=80 --name=bgnginx
- 85 oc get deploy blue-nginx -o yaml > green-nginx.yaml
- 86 kubectl get deploy blue-nginx -o yaml > green-nginx.yaml
- 87 vim green-nginx.yaml
- 88 kubectl create -f green-nginx.yaml
- 89 oc get pods
- 90 kubectl get pods
- 91 kubectl get pods -o wide
- 92 kubectl get endpoints
- 93 kubectl delete svc bgnginx; kubectl expose deploy green-nginx --port=80 --name=bgnginx
- 94 kubectl get endpoints
- 95 kubectl get pods,deploy
- 96 kubectl scale deploy blue-nginx --replicas=0
- 97 kubectl get pods,deploy
- 98 kubectl scale deploy blue-nginx --replicas=3
- 99 kubectl edit svc bgnginx
- 100 kubectl get pods,deploy
- 101 kubectl get endpoints
- 102 kubectl edit svc bgnginx
- 103 kubectl get endpoints
- 104 kubectl get pods,deploy
- 105 for i in activepod local-pv-pod newginx-cm newmysql test1; do kubectl delete pod $i; done
- 106 kubectl delete deploy myfirstnginx
- 107 kubectl delete deploy blue-nginx
- 108 kubectl delete deploy green-nginx
- 109 kubectl get pods,deploy
- 110 kubectl create deployment old-nginx --image=nginx:1.14 --replicas=3 --dry-run=client -o yaml > oldnginx.yaml
- 111 vim oldnginx.yaml
- 112 kubectl expose deployment old-nginx --name=oldnginx --port=80 --selector type=canary
- 113 kubectl create -f oldnginx.yaml
- 114 kubectl expose deployment old-nginx --name=oldnginx --port=80 --selector type=canary
- 115 kubectl describe svc oldnginx
- 116 kubectl get endpoints
- 117 kubectl get svc
- 118 curl 10.105.59.101
- 119 minikube ssh
- 120 kubectl edit svc oldnginx
- 121 kubectl get svc
- 122 curl $(minikube ip):31891
- 123 kubectl cp old-nginx-9b8576459-jptbb:/usr/share/nginx/html/index.html
- 124 kubectl cp old-nginx-9b8576459-jptbb:/usr/share/nginx/html/index.html .
- 125 kubectl cp old-nginx-9b8576459-jptbb:/usr/share/nginx/html/index.html index.html
- 126 vim index.html
- 127 kubectl create cm canary --from-file=index.html
- 128 kubectl describe cm canary
- 129 cd devopsinfourweeks/
- 130 vim canary.yaml
- 131 kubectl create -f canary.yaml
- 132 kubectl get svc
- 133 kubectl get endpoints
- 134 kubectl get deploy,pods
- 135 curl 192.168.49.2:31891
- 136 kubectl get deploy
- 137 kubectl scale deployment new-nginx --replicas=3
- 138 kubectl get deploy
- 139 kubectl scale deployment old-nginx --replicas=0
- 140 cd
- 141 ls
- 142 cd Downloads/
- 143 ls
- 144 tar xvf helm-v3.10.1-linux-amd64.tar.gz
- 145 sudo mv linux-amd64/helm /usr/local/bin/
- 146 helm version
- 147 minikube addons list
- 148 helm repo add k8s-dashboard https://kubernetes.github.io/dashboard
- 149 helm install my-kubernetes-dashboard k8s-dashboard/kubernetes-dashboard --version 5.11.0
- 150 kubectl get all
- 151 export POD_NAME=$(kubectl get pods -n default -l "app.kubernetes.io/name=kubernetes-dashboard,app.kubernetes.io/instance=my-kubernetes-dashboard" -o jsonpath="{.items[0].metadata.name}")
- 152 echo https://127.0.0.1:8443/
- 153 kubectl -n default port-forward $POD_NAME 8443:8443
- 154 bg
- 155 history
- 156 helm repo add bitnami https://charts.bitname.com/bitnami
- 157 helm repo add bitnami https://charts.bitnami.com/bitnami
- 158 helm repo list
- 159 helm search repo bitnami
- 160 helm repo update
- 161 helm install bitnami/mysql --generate-name
- 162 kubectl get all
- 163 helm show chart bitnami/mysql
- 164 helm show all bitnami/mysql
- 165 helm list
- 166 helm status mysql-1666962226
- 167 cd
- 168 helm show values bitnami/nginx
- 169 helm pull bitnami/nginx
- 170 ls
- 171 ls -l nginx-13.2.12.tgz
- 172 tar xvf nginx-13.2.12.tgz
- 173 vim nginx/values.yaml
- 174 helm template --debug nginx
- 175 helm install -f nginx/values.yaml helmginx nginx/
- 176 cd devopsinfourweeks/
- 177 ./counter.sh 12
- 178 cat crd-object.yaml
- 179 kubectl api-resources | wc
- 180 kubectl create -f crd-object.yaml
- 181 kubectl api-resources | wc
- 182 kubectl api-resources | grep back
- 183 cat crd-backup.yaml
- 184 kubectl create -f crd-backup.yaml
- 185 kubectl api-resources | grep back
- 186 kubectl get backups
- 187 kubectl get backups -o yaml
- 188 curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.22.0/install.sh | bash -s v0.22.0
- 189 kubectl get ns
- 190 history
- 191 minikube status
- 192 minikube start
- 193 kubectl get all
- 194 kubectl get cm
- 195 ssh sander@192.168.52.136
- 196 df -h
- 197 lvs
- 198 sudo -i
- 199 minikube start --memory=6132
- 200 minikube delete
- 201 minikube delete --memory=6132
- 202 minikube start --memory=6132
- 203 minikube start --memory=6132 --cpus=4
- 204 minikube delete
- 205 minikube start --memory=6132 --cpus=4
- 206 kubectl get all
- 207 source <(kubectl completion bash)
- 208 curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.22.0/install.sh | bash -s v0.22.0
- 209 kubectl get ns
- 210 kubectl get pods -n olm
- 211 kubectl api-resources | wc
- 212 kubectl create -f https://operatorhub.io/install/rook-ceph.yaml
- 213 kubectl get ns
- 214 kubectl get -n my-rook-ceph pods
- 215 kubectl get -n my-rook-ceph all
- 216 kubectl get csv -n my-rook-ceph
- 217 history
- 218 kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
- 219 kubectl api-resources | grep psp
- 220 cd devopsinfourweeks/
- 221 kubectl create ns argocd
- 222 kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- 223 kubectl get all -n argocd
- 224 cd ../Downloads/
- 225 ls
- 226 type argocd-linux-amd64
- 227 ls
- 228 file argocd-linux-amd64
- 229 sudo mv argocd-linux-amd64 /usr/local/bin/argocd
- 230 kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
- 231 kubectl port-forward svc argocd-server -n argocd 8080:443
- 232 kubectl port-forward svc/argocd-server -n argocd 8080:443
- 233 kubectl port-forward svc/argocd-server -n argocd 8081:443
- 234 bg
- 235 argocd login localhost:8081
- 236 sudo ls -l /usr/local/bin/argocd
- 237 sudo chmod +x /usr/local/bin/argocd
- 238 argocd login localhost:8081
- 239 argocd account update-password
- 240 argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
- 241 kubectl get all
- 242 argocd app get guestbook
- 243 argocd app list
- 244 argocd app sync guestbook
- 245 kubectl get all
- 246 history
- 247 ssh sander@192.168.52.136
- 248 history
Add Comment
Please, Sign In to add comment