Skip to content

Instantly share code, notes, and snippets.

@MartinHeinz
Created Oct 11, 2021
Embed
What would you like to do?
Secret and PVC for Job that runs BuildKit build.
---
#kubectl create secret generic buildkit-docker-config --from-file=/home/<USER>/.docker/config.json
apiVersion: v1
metadata:
name: buildkit-docker-config
data:
config.json: ...
kind: Secret
---
# This assumes that PersistentVolume gets created automatically
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: buildkit-workspace
spec:
storageClassName: ibmc-block-bronze # default
accessModes:
- ReadWriteOnce # ReadOnlyMany
resources:
requests:
storage: 5Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment