mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #3071 from rlarocque2/vagrant_doc_fixes
Update the Vagrant getting started guide
This commit is contained in:
commit
8cddfa8dbd
@ -74,17 +74,18 @@ To destroy the cluster:
|
|||||||
vagrant destroy
|
vagrant destroy
|
||||||
```
|
```
|
||||||
|
|
||||||
Once your Vagrant machines are up and provisioned, the first thing to do is to check that you can use the `kubecfg.sh` script.
|
Once your Vagrant machines are up and provisioned, the first thing to do is to check that you can use the `kubectl.sh` script.
|
||||||
|
|
||||||
You may need to build the binaries first, you can do this with ```make```
|
You may need to build the binaries first, you can do this with ```make```
|
||||||
|
|
||||||
```
|
```
|
||||||
./cluster/kubecfg.sh list /minions
|
$ ./cluster/kubectl.sh get minions
|
||||||
Minion identifier Labels
|
|
||||||
---------- ----------
|
NAME LABELS
|
||||||
10.245.2.4 <none>
|
10.245.1.4 <none>
|
||||||
10.245.2.3 <none>
|
10.245.1.5 <none>
|
||||||
10.245.2.2 <none>
|
10.245.1.3 <none>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Interacting with your Kubernetes cluster with the `kube-*` scripts.
|
### Interacting with your Kubernetes cluster with the `kube-*` scripts.
|
||||||
@ -128,7 +129,11 @@ When using the vagrant provider in Kubernetes, the `cluster/kubectl.sh` script w
|
|||||||
```
|
```
|
||||||
cat ~/.kubernetes_vagrant_auth
|
cat ~/.kubernetes_vagrant_auth
|
||||||
{ "User": "vagrant",
|
{ "User": "vagrant",
|
||||||
"Password": "vagrant"}
|
"Password": "vagrant"
|
||||||
|
"CAFile": "/home/k8s_user/.kubernetes.vagrant.ca.crt",
|
||||||
|
"CertFile": "/home/k8s_user/.kubecfg.vagrant.crt",
|
||||||
|
"KeyFile": "/home/k8s_user/.kubecfg.vagrant.key"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
You should now be set to use the `cluster/kubectl.sh` script. For example try to list the minions that you have started with:
|
You should now be set to use the `cluster/kubectl.sh` script. For example try to list the minions that you have started with:
|
||||||
|
Loading…
Reference in New Issue
Block a user