Easy kubectl for multiple clusters and namespaces.
bash init.sh [<kct_pod_yaml_path>] [<default_config_path>] [<nick_name_eg_qa>]
kctl ln <nick_name_of_cluster_eg_dev> [<existing_path_of_kube_config_if_you_already_have_any>]
# if you have the dashboard url else it will use port forward for dashboard svc
kctl cf ds.url https://34.200.213.249:30000
export KCTL_CONFIG_DIR=/my/custom/kube/config/directory
kctl ln <nick_name_of_cluster_eg_dev>
kctl ds
TIP: Token will be automatically copied to your cliboard and dashboard will open in browser. Just paste the token and click sign in.
source kctl
kctl -h
Just prepend -v for normal debugging, -vv for full debugging what is happening inside and -v0 to disable debugging completely So commands like
kctl get pgwill becomekctl -v get pg