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/sh | |
| # this hook is in SCM so that it can be shared | |
| # to install it, create a symbolic link in the projects .git/hooks folder | |
| # | |
| # i.e. - from the .git/hooks directory, run | |
| # $ ln -s ../../git-hooks/pre-commit.sh pre-commit | |
| # | |
| # to skip the tests, run with the --no-verify argument | |
| # i.e. - $ 'git commit --no-verify' |
| [alias] | |
| ph = log --graph --pretty=pretty-history --abbrev-commit --date=relative | |
| [pretty] | |
| pretty-history = format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset |