Files
wild-directory/cryptpad/versions/2024/deployment.yaml
Paul Payne 4d983819c9 feat(supabase): add services and statefulset for database management
feat(synapse): update ingress to use traefik ingress class and bump version

feat(syncthing-discovery): introduce syncthing discovery service with deployment and ingress

feat(syncthing-relay): add syncthing relay server with deployment and ingress configuration

fix(taiga): update liveness and readiness probes to use tcpSocket for health checks

fix(taiga): change PVC access mode to ReadWriteMany for media and static storage

feat(traefik): add icon and ignore rules for traefik service

docs(ushahidi): add notes for Redis configuration and Laravel startup probe adjustments

feat(ushahidi): implement dedicated Redis deployment for Ushahidi

fix(vllm): update deployment strategy and readiness/liveness probes for improved stability

fix(writefreely): pin writefreely image version to v0.15.1 for consistency

docs(zulip): add notes for TLS-terminating reverse proxy configuration and expected behavior
2026-07-02 21:34:27 +00:00

107 lines
2.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cryptpad
namespace: cryptpad
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
component: web
template:
metadata:
labels:
component: web
spec:
securityContext:
runAsUser: 0
runAsNonRoot: false
seccompProfile:
type: RuntimeDefault
initContainers:
- name: seed-config
image: cryptpad/cryptpad:version-2026.5.1
command:
- sh
- -c
- |
if [ ! -f /config-dest/config.example.js ]; then
cp /cryptpad/config/config.example.js /config-dest/config.example.js
fi
volumeMounts:
- name: cryptpad-config
mountPath: /config-dest
securityContext:
runAsNonRoot: false
runAsUser: 0
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]
readOnlyRootFilesystem: false
seccompProfile:
type: RuntimeDefault
containers:
- name: cryptpad
image: cryptpad/cryptpad:version-2026.5.1
ports:
- name: http
containerPort: 3000
protocol: TCP
env:
- name: CPAD_CONF
value: /cryptpad/config/config.js
- name: CPAD_MAIN_DOMAIN
value: https://{{ .domain }}
- name: CPAD_SANDBOX_DOMAIN
value: https://{{ .sandboxDomain }}
- name: CPAD_TRUSTED_PROXY
value: "true"
resources:
limits:
cpu: 1000m
ephemeral-storage: 1Gi
memory: 1Gi
requests:
cpu: 50m
ephemeral-storage: 50Mi
memory: 256Mi
volumeMounts:
- name: cryptpad-data
mountPath: /cryptpad/data
- name: cryptpad-config
mountPath: /cryptpad/config
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 90
timeoutSeconds: 5
periodSeconds: 15
failureThreshold: 6
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 60
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 3
securityContext:
runAsNonRoot: false
runAsUser: 0
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]
readOnlyRootFilesystem: false
seccompProfile:
type: RuntimeDefault
volumes:
- name: cryptpad-data
persistentVolumeClaim:
claimName: cryptpad-data
- name: cryptpad-config
emptyDir: {}
restartPolicy: Always