列出所有可用的集群上下文
kubectl config get-contexts
只打印名称。
kubectl config get-contexts -o name
← kubectl config view kubectl config set-context→