seperated manifests

This commit is contained in:
2026-02-02 13:36:02 +11:00
parent a1cd6d88cd
commit 454677fd14
3 changed files with 46 additions and 44 deletions

View File

@@ -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
---
@@ -75,3 +75,4 @@ spec:
resources:
requests:
storage: 10Gi

View File

@@ -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: <set if you want to pin it>
storage: 10Gi

View File

@@ -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