- 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
推薦閱讀
- Go Machine Learning Projects
- 大數(shù)據(jù)改變世界
- 大數(shù)據(jù)技術(shù)入門(第2版)
- 工業(yè)機(jī)器人入門實(shí)用教程(KUKA機(jī)器人)
- 大數(shù)據(jù)挑戰(zhàn)與NoSQL數(shù)據(jù)庫技術(shù)
- Photoshop CS3特效處理融會(huì)貫通
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- Enterprise PowerShell Scripting Bootcamp
- Cloud Security Automation
- Excel 2007終極技巧金典
- Learn QGIS
- 21天學(xué)通Linux嵌入式開發(fā)
- 生成對(duì)抗網(wǎng)絡(luò)項(xiàng)目實(shí)戰(zhàn)
- Linux Shell Scripting Cookbook(Third Edition)