Put the following line to your .bashrc
/.zshrc
export KUBECONFIG=`find ~/.kube -type f -path "*conf.d/*" -or -path '*config' | paste -sd: -`
and then put the import-ali-kubeconfig
to somewhere in your PATH
, and make it chmod +x import-ali-kubeconfig
find your cluster name:
aliyun cs DescribeClusters | jq -r '.[].name'"
then import your cluster
import-ali-kubeconfig [CLUSTER-NAME]