Last active
August 15, 2018 12:34
-
-
Save akshaymankar/4203da9a358a40b3280299f5756c1a65 to your computer and use it in GitHub Desktop.
Alias kubectl from master deployed by CFCR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
token=$(cat /var/vcap/jobs/kube-apiserver/config/tokens.csv | grep admin | awk -F, '{print $1}' | xargs echo) | |
alias kubectl="/var/vcap/packages/kubernetes/bin/kubectl -s https://master.cfcr.internal:8443 --token $token --insecure-skip-tls-verify=true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment