官术网_书友最值得收藏!

Cluster state storage

Since we're building resources in the cloud using configuration management, we're going to need to store the representation of our cluster in a dedicated S3 bucket. This source of truth will allow us to maintain a single location for the configuration and state of our Kubernetes cluster. Please prepend your bucket name with a unique value.

You'll need to have kubectl, kops, the aws cli, and IAM credentials set up for yourself at this point!

Be sure to create your bucket in the us-east-1 region for now, as kops is currently opinionated as to where the bucket belongs:

aws s3api create-bucket \
--bucket gsw-k8s-3-state-store \
--region us-east-1

Let's go ahead and set up versioning as well, so you can roll your cluster back to previous states in case anything goes wrong. Behold the power of Infrastructure as Code!

aws s3api put-bucket-versioning --bucket gsw-k8s-3-state-store --versioning-configuration Status=Enabled
主站蜘蛛池模板: 贵定县| 遂川县| 三都| 金乡县| 鹿邑县| 玉山县| 霍林郭勒市| 金阳县| 天柱县| 周口市| 紫阳县| 正阳县| 扎鲁特旗| 清涧县| 手机| 凤山市| 玉山县| 西林县| 城口县| 全南县| 黄平县| 积石山| 莱阳市| 大兴区| 含山县| 思茅市| 洮南市| 和林格尔县| 从江县| 吉林市| 义乌市| 平阴县| 平邑县| 遵化市| 泰安市| 凌海市| 灵璧县| 肃宁县| 布尔津县| 巴林左旗| 突泉县|