VirtualBox Instance via vagrant mkdir ubuntu vagrant init ubuntu/xenial64 vagrant up vagrant ssh OR vagrant get-config???? kops wget https://github.com/kubernetes/kops/releases/download/1.12.1/kops-linux-amd64 chmod +x kops-linux-amd64 sudo mv kops-linux-amd64 /usr/local/bin/kops awscli sudo apt-get update sudo apt-get install python-pip sudo pip install awscli aws configure…
Author: Joel Griffiths
Describe POD kubectl describe pod nodehelloworld.example.com minikube service MacBook:~/kubernetes-course$ cat first-app/helloworld-service.ymlapiVersion: v1kind: Servicemetadata:name: helloworld-servicespec:ports:- port: 80targetPort: nodejs-portprotocol: TCPselector:app: helloworldtype: LoadBalancerMacBook:~/kubernetes-course$ cat first-app/helloworld-nodeport-service.ymlapiVersion: v1kind: Servicemetadata:name: helloworld-servicespec:ports:- port: 31001nodePort: 31001targetPort: nodejs-portprotocol: TCPselector:app: helloworldtype: NodePortMacBook:~/kubernetes-course$ kubectl create -f first-app/helloworld-nodeport-service.ymlservice/helloworld-service createdMacBook:~/kubernetes-course$ minikube service helloworld-service…
MacBook:~$ minikube dashboard🔌 Enabling dashboard …🤔 Verifying dashboard health …🚀 Launching proxy …🤔 Verifying proxy health …🎉 Opening http://127.0.0.1:51077/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ in your default browser…
After installing kubectl with brew you should run: rm /usr/local/bin/kubectl brew link –overwrite kubernetes-cli
I needed a playbook to fail complete when any task failed. You would think “any_errors_fatal: True” would do this, but it doesn’t. It marks the hosts as failed and ends the play, but the recap doesn’t say anything about it….
Search and replace with ed ed can be used in place of sed to modify a file directly.. The format is straightforward if you have an example. Here is an example that changes the mailquota size for Maildir++. # cat…
INSTALL VirtualBox Instance via vagrant mkdir ubuntu vagrant init ubuntu/xenial64 vagrant up vagrant ssh OR vagrant get-config???? kops wget https://github.com/kubernetes/kops/releases/download/1.12.1/kops-linux-amd64 chmod +x kops-linux-amd64 sudo mv kops-linux-amd64 /usr/local/bin/kops awscli sudo apt-get update sudo apt-get install python-pip sudo pip install awscli aws…
docker login –username joelgriffiths docker.gadgetwiz.com
After starting Kubernets (configure kubectl automatically): Fix : invalid object doesn’t have additional properties After installing kubectl with brew you should run: rm /usr/local/bin/kubectl brew link –overwrite kubernetes-cli minikube dashboard MacBook:~$ minikube dashboard🔌 Enabling dashboard …🤔 Verifying dashboard health …🚀…
Copied from hello-world readme