We'll start by recreating a similar cluster as the one we used in the previous chapter:
All the commands from this chapter are available in the 15-pv.sh (https://gist.github.com/vfarcic/41c86eb385dfc5c881d910c5e98596f2) Gist.
cd k8s-specs git pull cd cluster
We entered the local copy of the k8s-specs repository, pulled the latest code, and went into the cluster directory.
In the previous chapter, we stored the environment variables we used in the kops file. Let's take a quick look at them.
cat kops
The output, without the keys, is as follows:
export AWS_ACCESS_KEY_ID=... export AWS_SECRET_ACCESS_KEY=... export AWS_DEFAULT_REGION=us-east-2 export ZONES=us-east-2a,us-east-2b,us-east-2c export NAME=devops23.k8s.local export KOPS_STATE_STORE=s3://devops23-1520933480
By storing the environment variables in a file, we can fast...