Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kubernetes.md change label 语法 #373

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

kubeme
Copy link
Contributor

@kubeme kubeme commented May 12, 2023

语法错误,正确的语法为
增加
kubectl label nodes = 删除
kubectl label nodes -
修改Label的值
kubectl label nodes = --overwrite

语法错误,正确的语法为
增加
kubectl label nodes <node-name> <label-key>=<label-value> 
删除
kubectl label nodes <node-name> <label-key>-
修改Label的值
kubectl label nodes <node-name> <label-key>=<label-value> --overwrite
@jaywcjlove jaywcjlove merged commit 67bc79e into jaywcjlove:main May 12, 2023
github-actions bot pushed a commit that referenced this pull request May 12, 2023
语法错误,正确的语法为
增加
kubectl label nodes <node-name> <label-key>=<label-value>
删除
kubectl label nodes <node-name> <label-key>-
修改Label的值
kubectl label nodes <node-name> <label-key>=<label-value> --overwrite 67bc79e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants