To use the eks-blueprints module, you must have nvm, node, npm, aws, istioctl, aws, aws-cdk, kubectl
- Install nvm using script from NVM github page https://github.com/nvm-sh/nvm
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash- open new terminal
nvm --versionnvm install node 20.11.0 (npm will get installed)curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"unzip awscli-bundle.zip./awscli-bundle/install -b ~/bin/aws- aws configure
curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.20.1 TARGET_ARCH=x86_64 sh -curl -LO https://dl.k8s.io/release/v1.29.0/bin/linux/amd64/kubectlnpm install -g aws-cdk@2.115.0npm i @aws-quickstart/eks-blueprintscdk --version- target account and region must be bootstrapped prior to deploying stacks
cdk bootstrap aws://<AWS-account-number>/<region-to-bootstrap>(run it outside git repo)
git clone <repo>cd <repo>cdk deployAfter deployment configure kubebctl. kubectl configuration cmd is part of 'cdk deploy' output. sampleaws eks update-kubeconfig --name ak-qa-eks --region us-east-2 --role-arn arn:aws:iam::657907747545:role/ak-qa-eks-AdminRole38563C57-rfo013EkdNlw
istioctl install -f components/istio-ingress-egress.yaml --skip-confirmationkubectl apply -f components/appkube-api-istiogw.yaml- Add route 53 entry for nlb created above
- For https listner on the nlb add ssl certificate
- check README from cmdb deployment repo
- check README from security rbac deployment repo
- First remove services, checkout README for service deployment
kubectl delete -f components/appkube-api-istiogw.yamlistioctl uninstall -f components/istio-ingress-egress.yamlloadbalancer won't be removed- Remove loadbalancer manually
istioctl operator remove --purge -n istio-systemconfirmation prompt should be removedistioctl uninstall --purge# load balaner won't be deletedkubectl delete namespace istio-systemcdk destroy ak-qa-eks- cleanup route53 entry
- cleanup loadbalancer destro