terraform-aws-eks

Preparation

# install tools
curl -sL https://raw.githubusercontent.com/opsnow/kops-cui/master/tools.sh | bash

Create Cluster

# env
cd env/dev-demo

# terraform (10m)
terraform init
terraform plan
terraform apply

# kube config
mkdir -p ~/.kube && cp .output/kube_config.yaml ~/.kube/config

# files
cat .output/aws_auth.yaml
cat .output/kube_config.yaml
cat .output/kube_config_secret.yaml

# get
kubectl get node -o wide
kubectl get all --all-namespaces