A kubectl
plugin to show the assignment of pods to nodes.
kubectl node-pod --format table --status
+----------------------+--------------------+----------------------------------------------+---------+
| NODE | NAMESPACE | POD NAME | STATUS |
+----------------------+--------------------+----------------------------------------------+---------+
| calico-control-plane | | | Ready |
| | kube-system | calico-node-qfcqs | Running |
| | kube-system | etcd-calico-control-plane | Running |
| | kube-system | kube-apiserver-calico-control-plane | Running |
| | kube-system | kube-controller-manager-calico-control-plane | Running |
| | kube-system | kube-proxy-9wn87 | Running |
| | kube-system | kube-scheduler-calico-control-plane | Running |
| calico-worker | | | Ready |
| | kube-system | calico-kube-controllers-857b8b787f-wpj29 | Running |
| | kube-system | calico-node-tpphd | Running |
| | kube-system | coredns-66bff467f8-2nwsr | Running |
| | kube-system | kube-proxy-fphtj | Running |
| | sonobuoy-3 | sonobuoy | Running |
| | sonobuoy-4 | sonobuoy | Running |
| calico-worker2 | | | Ready |
| | kube-system | calico-node-qvdqd | Running |
| | kube-system | coredns-66bff467f8-nnggj | Running |
| | kube-system | kube-proxy-bzcwf | Running |
| | local-path-storage | local-path-provisioner-bd4bb6b75-dcr9g | Running |
| | sonobuoy-5 | sonobuoy | Running |
+----------------------+--------------------+----------------------------------------------+---------+
-
Download the latest binary for your OS
-
unzip the archive
-
move the executable somewhere in your path
# OS X example; will be different on other OSs mv ~/Downloads/kubectl-node_pod_darwin_amd64/kubectl-node_pod /usr/local/bin
-
run it!
kubectl node-pod
See https://goreleaser.com/quick-start/
Set up a github token and run:
VERSION=v9.9.9
git tag $VERSION -m "something about the version"
git push --tags
export GITHUB_TOKEN=...
goreleaser
- manually update the sha256's using the checksums file
- TODO is there a better way to do this?
- manually update the versions using the checksums file
- TODO is there a better way to do this?
-
Choose one of the following:
-
easy way:
kubectl krew install --manifest=./deploy/krew/node-pod.yaml
-
hard way:
-
download a binary from the github project release page
-
run a
krew install
against the downloaded binarykubectl krew install --manifest=./deploy/krew/node-pod.yaml --archive=/Users/mfenwick/Downloads/node-pod_darwin_amd64.tar.gz
-
-
-
test it
kubectl node-pod
-
clean up
kubectl krew uninstall node-pod