2015-02-11 02:25:07 +08:00
|
|
|
# Install and configure kubectl
|
2015-02-05 15:06:03 +08:00
|
|
|
|
2015-02-11 02:25:07 +08:00
|
|
|
## Download the kubectl CLI tool
|
2015-05-15 03:24:03 +08:00
|
|
|
```bash
|
2015-02-05 15:06:03 +08:00
|
|
|
### Darwin
|
2015-05-15 03:24:03 +08:00
|
|
|
wget https://storage.googleapis.com/kubernetes-release/release/v0.17.0/bin/darwin/amd64/kubectl
|
2015-02-05 15:06:03 +08:00
|
|
|
|
|
|
|
|
### Linux
|
2015-05-15 03:24:03 +08:00
|
|
|
wget https://storage.googleapis.com/kubernetes-release/release/v0.17.0/bin/linux/amd64/kubectl
|
2015-02-05 15:06:03 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Copy kubectl to your path
|
2015-05-15 03:24:03 +08:00
|
|
|
```bash
|
2015-02-05 15:06:03 +08:00
|
|
|
chmod +x kubectl
|
|
|
|
|
mv kubectl /usr/local/bin/
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Create a secure tunnel for API communication
|
2015-05-15 03:24:03 +08:00
|
|
|
```bash
|
2015-02-05 15:06:03 +08:00
|
|
|
ssh -f -nNT -L 8080:127.0.0.1:8080 core@<master-public-ip>
|
|
|
|
|
```
|
2015-05-15 06:12:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
[]()
|