Skip to content

eksdemo

install

curl --location "https://github.com/awslabs/eksdemo/releases/latest/download/eksdemo_$(uname -s)_x86_64.tar.gz" |tar xz -C /tmp
sudo mv -v /tmp/eksdemo /usr/local/bin

create-eks-cluster-

  • create cluster

    CLUSTER_NAME=ekscluster1
    export AWS_DEFAULT_REGION=us-west-2
    
    eksdemo create cluster ${CLUSTER_NAME} \
        --instance m5.large \
        --nodes 3 \
        --version 1.31 \
        --vpc-cidr 10.10.0.0/16
    

  • create hosted zone (route53-cmd)

  • create ACM (create-certificate-with-eksdemo)
  • install alb controller (install alb controller)
  • install external dns (install externaldns)
  • install game-2048 (link)
    eksdemo install example-game-2048 -c ${CLUSTER_NAME} -I game2048.${DOMAIN_NAME} --dry-run
    

create node group

eksdemo create ng mng1 \
    -c ekscluster1 -i m5.large -N 3 

fargate-profile-

CLUSTER_NAME=ekscluster1
export AWS_DEFAULT_REGION=us-west-2
NAMESPACE=game-2048

eksdemo create fargate-profile fp-game-2048 \
    -c ${CLUSTER_NAME} 
    --namespaces ${NAMESPACE}

addons-

right-click & open-in-new-tab:

../awscli/acm-cmd

refer: create-certificate-with-eksdemo

refer

  • when create broken due to role change in cloud9, add another admin user to eks cluster and try create nodegroup (eks-access-api)