Monday, February 5, 2024

kubectl config view

The kubectl config view command can be used to view the kubeconfig file. Notice how the clusterscontexts, and user stanzas of kubeconfig correspond to the previously described commands, as shown:

$ kubectl config view

apiVersion: v1

clusters:

- cluster:

    certificate-authority: /home/helm-user/.minikube/ca.crt

    server: https://192.168.99.102:8443

No comments: