Kubernetes on a Mac

Enable auto-completion Upgrade bash, install autocompletion and enable them: https://medium.com/merapar/fixing-bash-autocompletion-on-macos-for-kubectl-and-kops-e87f019652e8 List all pod (sorted by node) kubectl get pods -o wide –sort-by=”{.spec.nodeName}” –all-namespaces 

DNS on Mac

Hopefully this was the last time I have to “google it” 🙂 Flush DNS cache on Mac sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say cache flushed To Change the DNS server networksetup -setdnsservers WI-FI

Getting started with Ansible

To Install on MacOS Add pip: $ sudo easy_install pip Install ansible: $ sudo pip install ansible Ping (EC2 Instance) sudo mkdir /etc/ansible cd /etc/ansible sudo vi hosts hosts (list of your hosts): ec2-52-15-xxx-yyy.us-east-2.compute.amazonaws.com use ssh-agent? $ ssh-agent bash $ ssh-add ~/aws_key.pem Ping To connect you will need to add Read more…