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

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
主站蜘蛛池模板: 公安县| 汉沽区| 高密市| 佛山市| 威海市| 伊金霍洛旗| 江源县| 南漳县| 东兴市| 彭水| 冀州市| 漳浦县| 凤山市| 金山区| 大庆市| 曲周县| 永安市| 吉首市| 雷山县| 兴海县| 墨脱县| 南宁市| 古丈县| 乌审旗| 务川| 临潭县| 邳州市| 鸡泽县| 汉川市| 武义县| 历史| 芮城县| 荥阳市| 成安县| 南澳县| 安平县| 武城县| 苏尼特左旗| 乌鲁木齐市| 巴青县| 南城县|