Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.57 KB

File metadata and controls

21 lines (15 loc) · 1.57 KB

eks-workshop-sample-api-service-go

A sample Kubernetes service used in the EKS Workshop CI/CD Pipeline module.

The Dockerfile is a multi-stage build that compiles the Go application and then packages it in a minimal image that pulls from scratch. The size of this Docker image is ~ 3.2 MiB.

The buildspec.yml file is used by the AWS CodeBuild stage. In this file, it pulls down kubectl, builds the container image, pushes the image to Amazon ECR and then deploys the change to the Amazon EKS Cluster.

In the hello-k8s.yml file, you will find the Kubernetes service and deployment definitions. The service is configured with a LoadBalancer which prompts Kubernetes to launch an external load balancer using an AWS ELB.

argo app intial setup

argocd repo add https://github.com/season1946/eks-workshop-sample-api-service-go --username usetoken --password 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

argocd app create argo-hello --repo https://github.com/season1946/eks-workshop-sample-api-service-go.git --path k8s-deploy --dest-server https://kubernetes.default.svc --dest-namespace default