kubernetes-the-hard-way/docs/02-client-tools.md

38 lines
985 B
Markdown
Raw Normal View History

2017-08-29 00:19:25 +03:00
# Installing the Client Tools
2019-03-20 07:34:49 +03:00
In this lab you will install the command line utilities required to complete this tutorial: [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl).
2017-08-29 00:19:25 +03:00
## Install kubectl
The `kubectl` command line utility is used to interact with the Kubernetes API Server. Download and install `kubectl` from the official release binaries:
### Linux
```
2019-03-20 07:34:49 +03:00
wget https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubectl
2017-08-29 00:19:25 +03:00
```
```
chmod +x kubectl
```
```
sudo mv kubectl /usr/local/bin/
```
### Verification
2019-03-20 07:34:49 +03:00
Verify `kubectl` version 1.13.0 or higher is installed:
2017-08-29 00:19:25 +03:00
```
kubectl version --client
```
> output
```
2019-03-20 07:34:49 +03:00
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T21:04:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}
2017-08-29 00:19:25 +03:00
```
Next: [Provisioning Compute Resources](03-compute-resources.md)