Skip to content

Commit 823d820

Browse files
committed
1 parent a4eab82 commit 823d820

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

01-path-basics/101-start-here/readme.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ Install kops using the following:
202202
$ chmod +x kops-linux-amd64
203203
$ sudo mv kops-linux-amd64 /usr/local/bin/kops
204204

205+
=== Collect Availability Zones
206+
207+
kops needs to know the availability zones to use when configuring a cluster. We set an environment variable `$AWS_AVAILABILITY_ZONES` based on the region.
208+
209+
$ export AWS_AVAILABILITY_ZONES="$(aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --output text | awk -v OFS="," '$1=$1')"
210+
205211
=== Configure an S3 bucket for kops
206212

207213
kops needs a "`state store`" to store configuration information of the cluster. We will use a s3 bucket with versioning enabled. A state store can work with multiple kops clusters.

0 commit comments

Comments
 (0)