Fix: Deployment explicit UID 1000 for anyuid SCC support
This commit is contained in:
@@ -2,7 +2,6 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: clawdbox
|
name: clawdbox
|
||||||
namespace: clawdbox
|
|
||||||
labels:
|
labels:
|
||||||
app: clawdbox
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
@@ -17,9 +16,10 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: clawdbox
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
|
serviceAccountName: default
|
||||||
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/park/clawdbox:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 2222
|
- containerPort: 2222
|
||||||
@@ -36,7 +36,15 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
securityContext: {}
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
fsGroup: 1000
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
volumes:
|
volumes:
|
||||||
- name: data-volume
|
- name: data-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -45,3 +53,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