- 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
推薦閱讀
- 基于C語言的程序設計
- 西門子PLC與InTouch綜合應用
- 計算機控制技術
- Google App Inventor
- 物聯網與云計算
- Expert AWS Development
- ROS機器人編程與SLAM算法解析指南
- 中國戰略性新興產業研究與發展·智能制造裝備
- Bayesian Analysis with Python
- 所羅門的密碼
- 數據要素:全球經濟社會發展的新動力
- 運動控制系統(第2版)
- 菜鳥起飛電腦組裝·維護與故障排查
- Microsoft System Center Data Protection Manager Cookbook
- Raspberry Pi 3 Projects for Java Programmers