修改cluster
1 | kubectl config set-cluster CLUSTER_NAME \ |
修改user
1 | kubectl config set-credentials USERNAME \ |
修改context
1 | kubectl config set-context CONTEXT \ |
设置默认context
1 | kubectl config use-context CONTEXT --kubeconfig=/path/to/kubeconfig |
1 | kubectl config set-cluster CLUSTER_NAME \ |
1 | kubectl config set-credentials USERNAME \ |
1 | kubectl config set-context CONTEXT \ |
1 | kubectl config use-context CONTEXT --kubeconfig=/path/to/kubeconfig |