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
function decamelize(string) { | |
return humps.decamelizeKeys(string, { | |
process: string2 => string2.split(/(?=[A-Z])/).join('_').toLowerCase().replace(/(\d+)/g, '_$1') }); | |
} |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |