In this lab you will install the command line utilities required to complete this tutorial: cfssl, cfssljson, and kubectl.
The cfssl
and cfssljson
command line utilities will be used to provision a PKI Infrastructure and generate TLS certificates.
Download and install cfssl
and cfssljson
:
curl -o cfssl https://pkg.cfssl.org/R1.2/cfssl_darwin-amd64
curl -o cfssljson https://pkg.cfssl.org/R1.2/cfssljson_darwin-amd64
chmod +x cfssl cfssljson
sudo mv cfssl cfssljson /usr/local/bin/
Some OS X users may experience problems using the pre-built binaries in which case Homebrew might be a better option:
brew install cfssl
curl -o cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
curl -o cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
chmod +x cfssl cfssljson
sudo mv cfssl cfssljson /usr/local/bin/
Verify cfssl
and cfssljson
version 1.2.0 or higher is installed:
cfssl version
output
Version: 1.2.0
Revision: dev
Runtime: go1.6
The kubectl
command line utility is used to interact with the Kubernetes API Server. Download and install kubectl
from the official release binaries:
wget https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/darwin/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
wget https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
Verify kubectl
version 1.17.3 or higher is installed:
kubectl version --client
output
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:14:22Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}