mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 01:38:58 +03:00
The chapter 'Configuring kubectl for Remote Access' is updated.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
In this chapter, you will generate a kubeconfig file for the `kubectl` command line utility based on the `admin` user credentials.
|
||||
|
||||
> Run the commands in this chapter from the same virtual machine used to generate the admin client certificates.
|
||||
**All procedures in this chapter should be done in `client-1`.**
|
||||
|
||||
|
||||
## The Admin Kubernetes Configuration File
|
||||
@@ -18,7 +18,7 @@ $ {
|
||||
kubectl config set-cluster kubernetes-the-hard-way \
|
||||
--certificate-authority=ca.pem \
|
||||
--embed-certs=true \
|
||||
--server=https://$KUBERNETES_LB_ADDRESS}:6443
|
||||
--server=https://$KUBERNETES_LB_ADDRESS:6443
|
||||
|
||||
kubectl config set-credentials admin \
|
||||
--client-certificate=admin.pem \
|
||||
|
||||
Reference in New Issue
Block a user