.kube config: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
The section contains the definition of one or more clusters. Each cluster definition has a name, certificate info and the [[Kubernetes_Control_Plane_and_Data_Plane_Concepts#API_Server|API server]]'s endpoint. | The section contains the definition of one or more clusters. Each cluster definition has a name, certificate info and the [[Kubernetes_Control_Plane_and_Data_Plane_Concepts#API_Server|API server]]'s endpoint. | ||
<syntaxhighlight lang='yaml'> | |||
clusters: | |||
- cluster: | |||
certificate-authority-data: LS0tLS1...tLQo= | |||
server: https://kubernetes.docker.internal:6443 | |||
name: docker-desktop | |||
</syntaxhighlight> | |||
=Users= | =Users= | ||
=Contexts= | =Contexts= |
Revision as of 00:01, 22 August 2019
Internal
Overview
$HOME/.kube/config is kubectl configuration file. It contains definitions for clusters, users and contexts.
Clusters
The section contains the definition of one or more clusters. Each cluster definition has a name, certificate info and the API server's endpoint.
clusters:
- cluster:
certificate-authority-data: LS0tLS1...tLQo=
server: https://kubernetes.docker.internal:6443
name: docker-desktop