79 lines
2.0 KiB
YAML
79 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ferretdb
|
|
namespace: wedding-planner
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: ferretdb
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ferretdb
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
fsGroup: 1000
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: ferretdb
|
|
image: ghcr.io/wekan/ferretdb-sqlite:v1.107.0
|
|
ports:
|
|
- name: mongodb
|
|
containerPort: 27017
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
env:
|
|
- name: FERRETDB_HANDLER
|
|
value: sqlite
|
|
- name: FERRETDB_SQLITE_URL
|
|
value: file:/state/
|
|
- name: FERRETDB_LISTEN_ADDR
|
|
value: 0.0.0.0:27017
|
|
- name: FERRETDB_STATE_DIR
|
|
value: /state
|
|
- name: FERRETDB_TELEMETRY
|
|
value: disable
|
|
- name: FERRETDB_LOG_LEVEL
|
|
value: error
|
|
- name: GODEBUG
|
|
value: multipathtcp=0
|
|
volumeMounts:
|
|
- name: state
|
|
mountPath: /state
|
|
startupProbe:
|
|
tcpSocket:
|
|
port: mongodb
|
|
failureThreshold: 60
|
|
periodSeconds: 5
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: mongodb
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: mongodb
|
|
periodSeconds: 20
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 96Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 384Mi
|
|
volumes:
|
|
- name: state
|
|
persistentVolumeClaim:
|
|
claimName: ferretdb-data
|