Fix: Add dedicated ServiceAccount claw-sa, remove seccompProfile, simplify securityContext
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: claw-sa
|
||||||
|
namespace: clawdbox
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: clawdbox
|
name: clawdbox
|
||||||
namespace: clawdbox
|
|
||||||
labels:
|
labels:
|
||||||
app: clawdbox
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
@@ -17,10 +22,10 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: clawdbox
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: clawd-sa
|
serviceAccountName: claw-sa
|
||||||
containers:
|
containers:
|
||||||
- name: clawdbox
|
- name: clawdbox
|
||||||
image: default-route-openshift-image-registry.apps.lab.apilab.us/clawdbox/clawdbox:latest
|
image: image-registry.openshift-image-registry.svc:5000/clawdbox/clawdbox:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 2222
|
- containerPort: 2222
|
||||||
@@ -44,8 +49,6 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
seccompProfile:
|
|
||||||
type: RuntimeDefault
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: data-volume
|
- name: data-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -54,3 +57,28 @@ spec:
|
|||||||
secret:
|
secret:
|
||||||
secretName: clawdbox-ssh-keys
|
secretName: clawdbox-ssh-keys
|
||||||
defaultMode: 0600
|
defaultMode: 0600
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: clawdbox
|
||||||
|
labels:
|
||||||
|
app: clawdbox
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 2222
|
||||||
|
targetPort: 2222
|
||||||
|
name: ssh
|
||||||
|
selector:
|
||||||
|
app: clawdbox
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: clawdbox-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
Reference in New Issue
Block a user