Difference between revisions of "Kubectl config"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
− | * <code>[[kubectl]] config</code> | + | * <code>[[kubectl]] config</code> XXXXX |
* <code>[[kubectl config view]]</code> | * <code>[[kubectl config view]]</code> | ||
* <code>[[kubectl config get-clusters]]</code> | * <code>[[kubectl config get-clusters]]</code> | ||
− | + | * <code>[[kubectl config get-users]]</code> | |
* <code>[[kubectl config get-contexts]]</code> | * <code>[[kubectl config get-contexts]]</code> | ||
* <code>[[kubectl config rename-context]]</code> | * <code>[[kubectl config rename-context]]</code> | ||
Line 13: | Line 13: | ||
* <code>[[kubectl config set-credentials]]</code> | * <code>[[kubectl config set-credentials]]</code> | ||
* <code>[[kubectl config --help]]</code> | * <code>[[kubectl config --help]]</code> | ||
+ | |||
+ | |||
+ | * <code>[[kubectl config set-clusters]]</code> | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[error: You must be logged in to the server (Unauthorized)]]</code> | ||
+ | |||
+ | == Activites == | ||
+ | * [[Merge multiple kubeconfigs]] | ||
+ | * [[Creating or updating a kubeconfig file for an Amazon EKS cluster]] <code>[[aws eks update-kubeconfig]]</code> | ||
== Related == | == Related == | ||
Line 25: | Line 35: | ||
* {{kubectl config context}} | * {{kubectl config context}} | ||
* {{kubectl config}} | * {{kubectl config}} | ||
− | * {{ | + | * {{K8s info}} |
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Revision as of 16:26, 10 April 2024
kubectl config
XXXXXkubectl config view
kubectl config get-clusters
kubectl config get-users
kubectl config get-contexts
kubectl config rename-context
kubectl config use-context
kubectl config set-context
kubectl config current-context
kubectl config set-credentials
kubectl config --help
Contents
Errors
Activites
- Merge multiple kubeconfigs
- Creating or updating a kubeconfig file for an Amazon EKS cluster
aws eks update-kubeconfig
Related
kubeadm config
~/.kube/config
kind: Config
aws eks update-kubeconfig --name my-eks-cluster-name
gcloud container clusters get-credentials
kubectx
See also
- 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
- Kubernetes info:
kubectl config view, kubectl cluster-info dump
Advertising: