ungleich-tools/k8s/nodes-with-suffix.sh
Nico Schottelius 2cab333fd6 add k8s helper
2021-12-14 16:02:19 +01:00

8 lines
279 B
Bash
Executable file

#!/bin/sh
# Execute commands on all hosts of the currently selected kubernetes cluster
# Do export KUBECONFIG=~/your-admin.conf before using this script
# Can be used to pass into cdist
domain=$1; shift
echo $(kubectl get node -o name | sed -e 's,node/,,' -e "s,\$,.$domain,")