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

  • Getting Started with Kubernetes
  • Jonathan Baier Jesse White
  • 148字
  • 2021-06-10 19:47:00

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
主站蜘蛛池模板: 区。| 金寨县| 南康市| 紫阳县| 新丰县| 江阴市| 舟山市| 沙河市| 宜州市| 长葛市| 珲春市| 锡林浩特市| 右玉县| 拉萨市| 五台县| 绥阳县| 德州市| 甘泉县| 如皋市| 乡城县| 嘉峪关市| 永安市| 蒲江县| 新巴尔虎右旗| 威信县| 准格尔旗| 潢川县| 惠东县| 遵义县| 乡城县| 墨脱县| 江城| 定陶县| 中山市| 潼南县| 宣汉县| 临城县| 和平区| 舒兰市| 磐石市| 扎囊县|