Add Dockerfile, K8s manifests, and ArgoCD app for OpenShift deployment
This commit is contained in:
47
manifests/deployment.yaml
Normal file
47
manifests/deployment.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
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
|
||||
Reference in New Issue
Block a user