From 6cbd8054923accd70d24321ed73a8e19e7055ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 15 Mar 2026 00:34:54 +0000 Subject: [PATCH] added buildkit --- deploy/buidkid/deployment.yaml | 61 ++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 deploy/buidkid/deployment.yaml diff --git a/deploy/buidkid/deployment.yaml b/deploy/buidkid/deployment.yaml new file mode 100644 index 0000000..a728628 --- /dev/null +++ b/deploy/buidkid/deployment.yaml @@ -0,0 +1,61 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: buildkit-cache + namespace: buildkit +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 20Gi +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: buildkitd + namespace: buildkit +spec: + replicas: 1 + selector: + matchLabels: + app: buildkitd + template: + metadata: + labels: + app: buildkitd + spec: + containers: + - name: buildkitd + image: moby/buildkit:v0.12.5 + args: + - "--addr" + - "tcp://0.0.0.0:1234" + - "--root" + - "/var/lib/buildkit" + ports: + - containerPort: 1234 + securityContext: + privileged: true + volumeMounts: + - name: buildkit-cache + mountPath: /var/lib/buildkit + volumes: + - name: buildkit-cache + persistentVolumeClaim: + claimName: buildkit-cache + +--- +apiVersion: v1 +kind: Service +metadata: + name: buildkitd + namespace: buildkit +spec: + selector: + app: buildkitd + ports: + - name: buildkit + port: 1234 + targetPort: 1234 \ No newline at end of file