Skip to content

Instantly share code, notes, and snippets.

@jovemfelix
Created June 4, 2020 20:16
Show Gist options
  • Save jovemfelix/36ade667e8e5e2e25577aea3519d5793 to your computer and use it in GitHub Desktop.
Save jovemfelix/36ade667e8e5e2e25577aea3519d5793 to your computer and use it in GitHub Desktop.
# associate variable to a personal file location (here use a personal file location like roger-admin)
export KUBECONFIG=$PWD/my-kubeconfig-admin
# create the unique/personal local file
touch $KUBECONFIG
# then make login as usual
oc login <host> -u <username> -p <pass>
# teste it
oc whoami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment