我正在学习关于kubernetes的教程,它告诉我运行以下命令:
kubectl config set-cluster --server=http://127.0.0.1:8080
kubectl config set-context local --cluster=local
kubectl config use-context local现在,当我运行kubectl config view时,我看到一个本地条目:
contexts:
- context:
cluster: local
user: ""
name: local我对此有点好奇,所以运行了以下命令:
kubectl config set-context testorz --cluster=local现在我看到了当我运行kubectl config view时
如何删除"testorz“上下文?
发布于 2016-04-27 16:48:40
您可以通过kubectl config unset contexts.testorz删除该条目。
请参阅unset/
https://stackoverflow.com/questions/36892020
复制相似问题