Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.1 KB

kops.md

File metadata and controls

62 lines (44 loc) · 2.1 KB

Manual installation of kops

This how-to is based on github.com/kubernetes/kops/blob/master/docs/aws.md.

  1. You need to follow several preparation steps to make sure the prerequisites for the installation are in place:

    • You have an AWS account
    • A DNS route is configured, e.g. http://lagom-cluster.some-domain.test
    • An S3 bucket is created, e.g. s3://lagom-cluster.config.12345
    • The CLI Tools are installed
  2. Export the S3 bucket

    export KOPS_STATE_STORE=s3://lagom-cluster.config.12345
  3. 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 or kops edit ig --name=lagom-cluster.some-domain.test master-eu-central-1a.

    spec:
    ...
    rootVolumeSize: 100
    rootVolumeType: gp2
    ...
  4. Bootstrap the AWS cluster

    kops update cluster lagom-cluster.some-domain.test --yes
  5. After the cluster is ready, it can be verified with kops validate cluster; all checks should be passed successfully

Now that your cluster is ready, you can proceed to configure Kubernetes