Skip to content

Kubernetes-based container building

Kubernetes-based container building refers to the practice of constructing container images directly within a Kubernetes cluster, rather than relying on an external daemon like a Docker engine. This approach is exemplified by tools like kaniko, which function as build images running inside a Kubernetes Pod.^[400-devops__03-Containerization__kaniko.md]

This technique typically arises as a solution to the complexities associated with "Docker-in-Docker" (DinD) setups, allowing for image creation entirely within the cluster environment.^[400-devops__03-Containerization__kaniko.md]

Key Characteristics

  • Execution Environment: The process operates by launching a Pod in Kubernetes to perform the image build.^[400-devops__03-Containerization__kaniko.md]
  • Tooling: Dedicated tools are used to execute the build steps and assemble the image without requiring a privileged Docker daemon on the host.
  • Kubernetes
  • [[Containerization]]
  • [[Docker-in-Docker]]

Sources

^[400-devops__03-Containerization__kaniko.md]