apiVersion: apps/v1 kind: Deployment metadata: name: wikijs namespace: wikijs spec: replicas: 1 strategy: type: Recreate selector: matchLabels: component: web template: metadata: labels: component: web spec: securityContext: runAsNonRoot: true runAsUser: 1000 runAsGroup: 1000 fsGroup: 1000 seccompProfile: type: RuntimeDefault containers: - name: wikijs image: ghcr.io/requarks/wiki:2.5 ports: - name: http containerPort: 3000 protocol: TCP env: - name: DB_TYPE value: postgres - name: DB_HOST value: {{ .db.host }} - name: DB_PORT value: "{{ .db.port }}" - name: DB_USER value: {{ .db.user }} - name: DB_NAME value: {{ .db.name }} - name: DB_PASS valueFrom: secretKeyRef: name: wikijs-secrets key: dbPassword resources: limits: cpu: 500m ephemeral-storage: 1Gi memory: 512Mi requests: cpu: 50m ephemeral-storage: 50Mi memory: 256Mi volumeMounts: - name: wikijs-data mountPath: /wiki/data/content livenessProbe: httpGet: path: /healthz port: 3000 initialDelaySeconds: 60 timeoutSeconds: 5 periodSeconds: 15 failureThreshold: 6 readinessProbe: httpGet: path: /healthz port: 3000 initialDelaySeconds: 30 timeoutSeconds: 3 periodSeconds: 10 failureThreshold: 3 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: false volumes: - name: wikijs-data persistentVolumeClaim: claimName: wikijs-data restartPolicy: Always