Skip to content

Instantly share code, notes, and snippets.

@PeterKneale
Last active January 8, 2017 22:16
Show Gist options
  • Save PeterKneale/8c5a020a7232f2a68820b0ebedfd33c2 to your computer and use it in GitHub Desktop.
Save PeterKneale/8c5a020a7232f2a68820b0ebedfd33c2 to your computer and use it in GitHub Desktop.

Create DNS

aws route53 create-hosted-zone --name cluster.example.org --caller-reference 98
  • Remember to setup the ns records in the parent domain (example.org)
    • cluster.example.org NS to NS1, NS2, NS3, NS4 etc
  • test DNS
    • dig NS cluster.example.org

Create Bucket

  • This is where kops will store state
aws s3 mb s3://cluster.example.org

Set State

  • export the location of the bucket for the kops tool
export KOPS_STATE_STORE=s3://cluster.example.org

Build Cluster

  • creates the definition of the cluster and stores it in the state store (s3 above)
kops create cluster --zones=ap-northeast-1a cluster.example.org

Examine

  • list clusters, edit this cluster etc :
kops get cluster

kops edit cluster cluster.example.org

kops edit ig --name=cluster.example.org nodes

kops edit ig --name=cluster.example.org master-ap-northeast-2a

Run Cluster

  • Finally actually run / provision your cluster with:
kops update cluster cluster.example.org

Run Dashbaord

  • Install Dashboard
kubectl create -f https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml
  • Run the proxy
kubectl proxy

Delete Cluster and Remove bucket

  • remove dns zone manually
kops delete cluster cluster.example.org
aws s3 rb s3://cluster.example.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment