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
#!/bin/bash | |
# Start/stop an EC2 instance to use as a ssh tunnel | |
# requires the aws package locally -- sudo apt-get install awscli | |
# | |
# usage: ./tunnel.sh start (spin up EC2 and create the tunnel) | |
# ./tunnel.sh stop (terminate the EC2 instance to save money) | |
# ./tunnel.sh resume (in case your tunnel is interrupted but the EC2 instance is still running) | |
# CHANGE THE PARAMETERS BELOW |