Implementing in-cluster and out-of-cluster CI/CD with Kubernetes
Since there are so many options for CI/CD with Kubernetes, we will choose two options and implement them one by one so you can compare their feature sets. First, we'll implement CI/CD to Kubernetes on AWS CodeBuild, which is a great example implementation that can be reused with any external CI system that can run Bash scripts, including Bitbucket Pipelines, Jenkins, and others. Then, we'll move on to FluxCD, an in-cluster GitOps-based CI option that is Kubernetes-native. Let's start with the external option.
Implementing Kubernetes CI with AWS Codebuild
As mentioned earlier, our AWS CodeBuild CI implementation will be easy to duplicate in any script- based CI system. In many cases, the pipeline YAML definition we'll use is near identical. Also, as we discussed earlier, we are going to skip the actual building of the container image. We will instead focus on the actual deployment piece.
To...