How do you build 12-factor apps using Kubernetes?
Let’s look at what all of this means in terms of Kubernetes applications. Principle I. Codebase Principle 1 of a 12 Factor App is “One codebase tracked in revision control, many deploys”. For Kubernetes applications, this principle is actually embedded in the nature of container orchestration itself. Typically, you create your code using a source control repository such as a git repo, then store specific versions of your images in the Docker Hub, ECR, ACR. When you define the containers to be orchestrated as part of a a Kubernetes Pod, Deployment, DaemonSet, you also specify a particular version of the image, as in: ... spec: containers: - name: AcctApp image: acctApp:v3 ... In this way, you might have multiple versions of your application running in different deployments. Applications can also behave differently depending on the configuration information with which t...