From 454677fd144f7fe7852e0bb47f553f4d39e41c8f Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Mon, 2 Feb 2026 13:36:02 +1100 Subject: [PATCH] seperated manifests --- manifests/deployment.yaml | 73 ++++++++++++++++++++------------------- manifests/pvc.yaml | 5 ++- manifests/service.yaml | 12 ++++--- 3 files changed, 46 insertions(+), 44 deletions(-) diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 8f3cc4a..bc30bb2 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -17,39 +17,39 @@ spec: app: clawdbox spec: containers: - - name: clawdbox - image: image-registry.openshift-image-registry.svc:5000/park/clawdbox:latest - imagePullPolicy: Always - ports: - - containerPort: 2222 - name: ssh - volumeMounts: - - mountPath: /data - name: data-volume - - mountPath: /home/claw/.ssh - name: ssh-keys - resources: - limits: - memory: "2Gi" - cpu: "1000m" - requests: - memory: "512Mi" - cpu: "250m" - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: ["ALL"] - runAsNonRoot: true - seccompProfile: - type: RuntimeDefault + - name: clawdbox + image: image-registry.openshift-image-registry.svc:5000/clawdbox/clawdbox:latest + imagePullPolicy: Always + ports: + - containerPort: 2222 + name: ssh + volumeMounts: + - mountPath: /data + name: data-volume + - mountPath: /home/claw/.ssh + name: ssh-keys + resources: + limits: + memory: "2Gi" + cpu: "1000m" + requests: + memory: "512Mi" + cpu: "250m" + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault volumes: - - name: data-volume - persistentVolumeClaim: - claimName: clawdbox-pvc - - name: ssh-keys - secret: - secretName: clawdbox-ssh-keys - defaultMode: 0600 + - name: data-volume + persistentVolumeClaim: + claimName: clawdbox-pvc + - name: ssh-keys + secret: + secretName: clawdbox-ssh-keys + defaultMode: 0600 --- apiVersion: v1 kind: Service @@ -59,9 +59,9 @@ metadata: app: clawdbox spec: ports: - - port: 2222 - targetPort: 2222 - name: ssh + - port: 2222 + targetPort: 2222 + name: ssh selector: app: clawdbox --- @@ -74,4 +74,5 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi \ No newline at end of file + storage: 10Gi + diff --git a/manifests/pvc.yaml b/manifests/pvc.yaml index 35d37c5..ac72ce2 100644 --- a/manifests/pvc.yaml +++ b/manifests/pvc.yaml @@ -1,12 +1,11 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: clawdbox-home + name: clawdbox-pvc namespace: clawdbox spec: accessModes: - ReadWriteOnce resources: requests: - storage: 4Gi - # storageClassName: + storage: 10Gi diff --git a/manifests/service.yaml b/manifests/service.yaml index 571ea15..9446e6a 100644 --- a/manifests/service.yaml +++ b/manifests/service.yaml @@ -3,10 +3,12 @@ kind: Service metadata: name: clawdbox namespace: clawdbox + labels: + app: clawdbox spec: - selector: - app.kubernetes.io/name: clawdbox ports: - - name: ssh - port: 22 - targetPort: 22 + - port: 2222 + targetPort: 2222 + name: ssh + selector: + app: clawdbox