1
0
Fork 0
mirror of https://github.com/imjasonh/buildpack-in-a-pod synced 2026-07-06 19:22:22 +00:00
No description
Find a file
2021-10-20 12:55:01 -04:00
buildpack-pod.yaml auth works 2021-10-20 12:45:03 -04:00
LICENSE initial commit; auth continues to be the bane of my existence 2021-10-20 09:55:51 -04:00
README.md add links 2021-10-20 12:55:01 -04:00

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.

  1. 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.

  1. Run the build
kubectl create -f buildpack-pod.yaml

This will create a new Pod with a randomly generated name like buildpacks-a1db2

  1. Watch logs
kubectl logs buildpacks-a1db2 -f 
  1. See the built image digest
kubectl get pod buildpacks-a1db2 -ojsonpath="{.status.containerStatuses[0].state.terminated.message}"