infrastructure/apps/ghostcms/resources/deployment.yaml
Peter Kurfer c592010f90
All checks were successful
continuous-integration/drone/push Build is passing
feat: prepare GhostCMS
2023-11-01 19:47:08 +01:00

41 lines
No EOL
926 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ghostcms
spec:
selector:
matchLabels:
app.kubernetes.io/name: ghostcms
template:
metadata:
labels:
app.kubernetes.io/name: ghostcms
spec:
containers:
- name: ghostcms
image: ghostcms
ports:
- containerPort: 2368
env:
- name: NODE_ENV
value: production
envFrom:
- secretRef:
name: ghostcms-base-config
- secretRef:
name: ghostcms-secret-config
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop:
- ALL
privileged: false
runAsUser: 1000
runAsGroup: 1000
resources:
limits:
memory: "384Mi"
cpu: "100m"