This Repo has the sample code to demonstrate how to create an automated release and deployment pipeline to deploy applications to a Kubernetes cluster in the cloud using Digital.ai Deploy and Release.
https://www.youtube.com/watch?v=pZl7rx-v-Xo
Here's the link to the step-by-step documentation.
How to run this workflow:
- Fork this repo to your personal git hub repo
- Enable workflow in Git hub action
- Clone repo to your local machine
- Fill details in aws/release and aws/deploy secrete.xlvals and valules.xlvals
- Use xl-cli to apply dairelease.yaml and daideploy.yaml
- Make sure infra is created properly on both release and deploy server
- On git hub add below secret
- Create a webhook and select Pull request event, do not add any secret to webhook
- Create a Pull request and merge it to master and see application is deployed to aws EKS cluster using DAI Release/Deploy Pipeline.
- https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html
- https://aws.amazon.com/blogs/opensource/network-load-balancer-nginx-ingress-controller-eks/
- https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
- https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/setting-up-eksctl.html
- https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
- https://docs.xebialabs.com/v.10.2/release/how-to/install-the-xl-cli#manage-the-xl-cli-config-file