mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 19:21:37 +00:00
populate the instructions on installing kubectl in getting-started-guides
This commit is contained in:
@@ -48,6 +48,7 @@ installed](https://docs.docker.com/installation/). On Mac OS X you can use
|
||||
[boot2docker](http://boot2docker.io/).
|
||||
|
||||
## Setup
|
||||
###Starting a cluster
|
||||
The cluster setup scripts can setup Kubernetes for multiple targets. First modify `cluster/kube-env.sh` to specify azure:
|
||||
|
||||
KUBERNETES_PROVIDER="azure"
|
||||
@@ -63,13 +64,26 @@ You can create a virtual network:
|
||||
|
||||
Now you're ready.
|
||||
|
||||
You can then use the `cluster/kube-*.sh` scripts to manage your azure cluster, start with:
|
||||
You can download and install the latest Kubernetes release from [this page](https://github.com/GoogleCloudPlatform/kubernetes/releases), then run the `<kubernetes>/cluster/kube-up.sh` script to start the cluster:
|
||||
|
||||
cd kubernetes
|
||||
cluster/kube-up.sh
|
||||
|
||||
The script above will start (by default) a single master VM along with 4 worker VMs. You
|
||||
can tweak some of these parameters by editing `cluster/azure/config-default.sh`.
|
||||
|
||||
### Adding the kubernetes command line tools to PATH
|
||||
The [kubectl](../../docs/user-guide/kubectl/kubectl.md) tool controls the Kubernetes cluster manager. It lets you inspect your cluster resources, create, delete, and update components, and much more.
|
||||
You will use it to look at your new cluster and bring up example apps.
|
||||
|
||||
Add the appropriate binary folder to your ```PATH``` to access kubectl:
|
||||
|
||||
# OS X
|
||||
export PATH=<path/to/kubernetes-directory>/platforms/darwin/amd64:$PATH
|
||||
|
||||
# Linux
|
||||
export PATH=<path/to/kubernetes-directory>/platforms/linux/amd64:$PATH
|
||||
|
||||
## Getting started with your cluster
|
||||
See [a simple nginx example](../user-guide/simple-nginx.md) to try out your new cluster.
|
||||
|
||||
|
Reference in New Issue
Block a user