Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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 <alias-name> -a <cluster url> -c <api url> -n <namespace> -u <nt-id> -k <kube-config-location> -i=true
 
 
# Login - Case 1 - With env variables `TKE_USERNAME` & `TKE_PASSWORD` are already set
$ tke -e <alias> login
    # Login happens without any interaction
 
 
# Login - Case 2 - When no env variables `TKE_USERNAME` & `TKE_PASSWORD` are set
$ tke -e <alias> login
    # Prompts for password
 
 
# Login - Case 3 - Overriding username set in alias (If env variables `TKE_USERNAME` & `TKE_PASSWORD` aren't set)
$ tke -e <alias> 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 <alias> 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 <alias> svc-account --name <service-account-name> --namespace <namespace>
 
# Copy config from remote endpoint
$ tke alias-copy -f <remote url>
    # eg: <remote url> = https://iasgit.internal.t-mobile.com/raw/PE/tke-cli/master/config/tke-all-foundations.yml
 
 
# Update, delete aliases
$ tke -e <alias> alias-update
$ tke -e <alias> alias-delete
$ tke -e <alias> info
 
 
# Fetch TKE token
# tke -e <alias> token
    # prints access token
Comment

PREVIOUS NEXT
Code Example
Shell :: linux paginate output 
Shell :: how to append linux to exists flutter project 
Shell :: substitute string in many files 
Shell :: team modify preffix minecraft 1.18 
Shell :: chmod rwx for all users 
Shell :: install ros melodic ubuntu 20 
Shell :: hwot o rename a folder in linux shelp 
Shell :: to run index.html using parcel server 
Shell :: How to remove one directory owned by a specific user on Linux 
Shell :: react spring version 8 
Shell :: get or filter or ouput docker ps custom columns 
Shell :: change directory name lunix 
Shell :: cp directory with exclusion 
Shell :: containing globalprotect, pre-dependency problem: globalprotect pre-depends on libqt5webkit5 libqt5webkit5 is not installed. 
Shell :: to remember all commands typed in multiple terminal 
Shell :: running shell script 
Shell :: deb http://la-mirrors.evowise.com/ubuntu/ disco-security multiverse 
Shell :: override dh_dwz 
Shell :: visual basic code syntax 
Shell :: sudo apt get app 
Shell :: linux download file from server to local machine 
Shell :: install ecryptfs in linux 
Shell :: echo object command line 
Shell :: This command will base the newly created branch on the existing branch specified in the command 
Shell :: uninstall debian kodi 
Shell :: linux convert multiple images 
Shell :: docker error "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. 
Shell :: install albert search ubuntu 
Shell :: how to chang spark hadoop replication factor on commandline 
Shell :: comand moves or renames the old file to the new name 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =