This how-to is based on github.com/kubernetes/kops/blob/master/docs/aws.md.
-
You need to follow several preparation steps to make sure the prerequisites for the installation are in place:
-
Export the S3 bucket
export KOPS_STATE_STORE=s3://lagom-cluster.config.12345
-
Create an Amazon cluster configuration with one master node on a t2.micro instance and two minion nodes on t2.medium instances in the eu-central-1a zone
kops create cluster --name=lagom-cluster.some-domain.test --zones=eu-central-1a --node-count=1 --node-size=t2.medium --master- size=t2.micro --dns-zone=lagom-cluster.some-domain.test
All of the nodes must have 20 GB of GP2 storage assigned.
This can be adjusted in the spec section of the config file:
kops edit ig --name=lagom-cluster.some-domain.test nodes
orkops edit ig --name=lagom-cluster.some-domain.test master-eu-central-1a
.spec: ... rootVolumeSize: 100 rootVolumeType: gp2 ...
-
Bootstrap the AWS cluster
kops update cluster lagom-cluster.some-domain.test --yes
-
After the cluster is ready, it can be verified with
kops validate cluster
; all checks should be passed successfully