apiVersion: apps/v1 kind: Deployment metadata: name: hedgedoc spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: hedgedoc template: metadata: labels: app: hedgedoc spec: # No _PORT=tcp://... env vars: apps like Paperless read # PAPERLESS_PORT as their own setting and crash. enableServiceLinks: false securityContext: fsGroup: 10000 containers: - name: hedgedoc image: quay.io/hedgedoc/hedgedoc:1.12.0 ports: - name: http containerPort: 3000 # CMD_DB_URL (postgres://hedgedoc:...@postgres.postgres.svc/hedgedoc) # and CMD_SESSION_SECRET. envFrom: - secretRef: name: hedgedoc-secrets env: - name: CMD_DOMAIN value: md.un-oeil.fr - name: CMD_PROTOCOL_USESSL value: "true" - name: CMD_URL_ADDPORT value: "false" # Only people with an account can create notes. - name: CMD_ALLOW_ANONYMOUS value: "false" - name: CMD_ALLOW_EMAIL_REGISTER value: "true" volumeMounts: - name: uploads mountPath: /hedgedoc/public/uploads readinessProbe: httpGet: path: /_health port: http initialDelaySeconds: 15 resources: requests: cpu: 50m memory: 128Mi limits: memory: 512Mi volumes: - name: uploads persistentVolumeClaim: claimName: hedgedoc-uploads