mirror of
https://github.com/imjasonh/buildpack-in-a-pod
synced 2026-07-06 19:22:22 +00:00
No description
| buildpack-pod.yaml | ||
| LICENSE | ||
| README.md | ||
Buildpack in a Pod
This demonstrates running CNCF Buildpacks in a regular Kubernetes Pod.
This is effectively what Tekton, Shipwright, kpack and others do, without all that ornamentation and friendliness.
- Set up registry credentials
kubectl create secret generic regcred \
--from-file=.dockerconfigjson=~/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
Note: Registry credentials must be basic username/password credentials. Credential helpers are not supported.
- Run the build
kubectl create -f buildpack-pod.yaml
This will create a new Pod with a randomly generated name like buildpacks-a1db2
- Watch logs
kubectl logs buildpacks-a1db2 -f
- See the built image digest
kubectl get pod buildpacks-a1db2 -ojsonpath="{.status.containerStatuses[0].state.terminated.message}"