-
-
Save MartinHeinz/e5cc1f8aa00b1c44d19cf685144d16e4 to your computer and use it in GitHub Desktop.
Secret and PVC for Job that runs BuildKit build.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
#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