48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: clawrizon
|
|
namespace: clawrizon
|
|
labels:
|
|
app: clawrizon
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: clawrizon
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: clawrizon
|
|
spec:
|
|
containers:
|
|
- name: clawrizon
|
|
image: image-registry.openshift-image-registry.svc:5000/clawrizon/clawrizon:latest
|
|
ports:
|
|
- containerPort: 3333
|
|
env:
|
|
- name: DATA_DIR
|
|
value: /app/data
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: clawrizon-data
|