tke cli
# List all available sub-commands
$ tke
# version of tke cli
$ tke version
# initialize tke cli - one shot modify kubeconfig location & NT-ID credentials to connect to cluster
$ tke init
# list all envs
$ tke envs
# Create a new alias env
$ tke alias-env -e -a -c -n -u -k -i=true
# Login - Case 1 - With env variables `TKE_USERNAME` & `TKE_PASSWORD` are already set
$ tke -e login
# Login happens without any interaction
# Login - Case 2 - When no env variables `TKE_USERNAME` & `TKE_PASSWORD` are set
$ tke -e login
# Prompts for password
# Login - Case 3 - Overriding username set in alias (If env variables `TKE_USERNAME` & `TKE_PASSWORD` aren't set)
$ tke -e login -u kchennu1
# prompts for password
# Login - Case 4 - Overriding username set in alias (If env variables `TKE_USERNAME` & `TKE_PASSWORD` are set)
$ tke -e login -u kchennu1
# this -u has no effect. tke-cli picks up credentials from env variables.
# Generate KubeConfig file for K8s Service Account for use in CI/CD workflows
$ tke -e svc-account --name --namespace
# Copy config from remote endpoint
$ tke alias-copy -f
# eg: = https://iasgit.internal.t-mobile.com/raw/PE/tke-cli/master/config/tke-all-foundations.yml
# Update, delete aliases
$ tke -e alias-update
$ tke -e alias-delete
$ tke -e info
# Fetch TKE token
# tke -e token
# prints access token
|