infrastructure/apps/ghostcms/resources/deployment.yaml

41 lines
926 B
YAML
Raw Normal View History

2023-10-31 18:14:58 +00:00
---
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"