Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
| # The full public facing url | |
| #root_url = %(protocol)s://%(domain)s:%(http_port)s/ | |
| root_url = http://localhost:80/grafana/ |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # Install AWS CLI, Kubectl, Kops | |
| sudo apt update | |
| sudo apt install -y awscli | |
| sudo snap install kubectl --classic | |
| curl -LO https://github.com/kubernetes/kops/releases/download/1.7.0/kops-linux-amd64 | |
| chmod +x kops-linux-amd64 | |
| mv ./kops-linux-amd64 /usr/local/bin/kops | |
| # Setup the AWS profile | |
| aws config |