Deployment Flow: Gitlab to Kubernetes Cluster on AWS(kops) with Image from ECR Built by CodeBuild

Time to Create Cluster

kops create cluster \
--name cluster.example.com \
--zones us-west-2a \
--state s3://my-unique-bucket-aws \
--NODE_SIZE m4.large \
--node-count 2 \
--master-size m4.large \
--yes

Time for Helm

helm create my-app

Create Service Account and kubeconfig for Gitlab Deployment

./kubectl-sa-kubeconfig.sh gitlab default

Create CodeBuild Trigger and ECR Registry

Create ECS Registry

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store