add k8s helper
This commit is contained in:
parent
5b3892bde4
commit
2cab333fd6
|
@ -0,0 +1,8 @@
|
|||
#!/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,")
|
Loading…
Reference in New Issue