Difference between revisions of "Kubectl config set-context"
Jump to navigation
Jump to search
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
+ | [[kubectl config]] set-[[context]] your-context | ||
+ | Context "your-context" modified. | ||
+ | |||
+ | kubectl config set-context --current [[--namespace]]=yournamespace | ||
== Related == | == Related == | ||
* <code>[[kubectl config get-clusters]]</code> | * <code>[[kubectl config get-clusters]]</code> | ||
* <code>[[kubectl config get-contexts]]</code> | * <code>[[kubectl config get-contexts]]</code> | ||
+ | * <code>[[kubectl config current-context]]</code> | ||
* <code>[[kubectl config view]]</code> | * <code>[[kubectl config view]]</code> | ||
== See also == | == See also == | ||
+ | * {{kubectl config context}} | ||
* {{kubectl config}} | * {{kubectl config}} | ||
* {{kubectl}} | * {{kubectl}} | ||
[[Category:Kubectl]] | [[Category:Kubectl]] |
Latest revision as of 12:20, 19 September 2022
kubectl config set-context your-context Context "your-context" modified.
kubectl config set-context --current --namespace=yournamespace
Related[edit]
kubectl config get-clusters
kubectl config get-contexts
kubectl config current-context
kubectl config view
See also[edit]
- Kubernetes context:
kubectl config [ get-contexts | set-context | current-context | use-context ]
,~/.kube/config, kubectx
kubectl config
[view | get-contexts | current-context | get-clusters | set-context | set-credentials ], ~/.kube/config, kubectl config --help
,kubectx
, Kubernetes contexts,KUBECONFIG, kubectl --kubeconfig
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: