July 2017
Intermediate to advanced
656 pages
16h 1m
English
The kops tool stores its state in our S3 bucket. We can grab the contents of the bucket locally using the AWS tools.
Let's create and enter a fresh directory called store:
$ mkdir store$ cd store
Then we can run the following command to pull the State Store to our local machine:
$ aws s3 sync s3://<bucket name> .
This will fetch the entire contents of the kops state store for us to inspect. The directory structure is as follows:
├── addons │ └── ... ├── cluster.spec ├── config ├── instancegroup │ └── ... ├── pki │ └── ... └── secrets └── ...
The key files are cluster.spec and config, which control the overall structure of our cluster. Dissecting these configuration files is a great way to take our Kubernetes ...