mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #44125 from amacneil/kubeadm-instructions
Automatic merge from submit-queue kubeadm: improve quickstart instructions **What this PR does / why we need it**: Improves instructional output following setup of a kubernetes master with kubeadm. This helps prevent unnecessary support overhead such as: https://github.com/kubernetes/kubeadm/issues/212#issuecomment-292015402 **Example current output**: ``` To start using your cluster, you need to run (as a regular user): sudo cp /etc/kubernetes/admin.conf $HOME/ sudo chown $(id -u):$(id -g) $HOME/admin.conf export KUBECONFIG=$HOME/admin.conf ``` **Example new output**: ``` To start using your cluster, you need to run (as a regular user): mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config ``` **Release note**: ```release-note NONE ```
This commit is contained in:
commit
f33a5f8bff
@ -49,9 +49,9 @@ var (
|
||||
|
||||
To start using your cluster, you need to run (as a regular user):
|
||||
|
||||
sudo cp {{.KubeConfigPath}} $HOME/
|
||||
sudo chown $(id -u):$(id -g) $HOME/{{.KubeConfigName}}
|
||||
export KUBECONFIG=$HOME/{{.KubeConfigName}}
|
||||
mkdir -p $HOME/.kube
|
||||
sudo cp -i {{.KubeConfigPath}} $HOME/.kube/config
|
||||
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
||||
|
||||
You should now deploy a pod network to the cluster.
|
||||
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
|
||||
|
Loading…
Reference in New Issue
Block a user