Mirror of https://forge.levinkeller.de/levin/dorfarchiv.git
264d3e2d5e0d12e90dd4bd33cc2231313cd87c86
43 lines · 1.0 KB
| 1 | apiVersion: apps/v1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: dorfarchiv |
| 5 | namespace: dorfarchiv |
| 6 | labels: |
| 7 | app: dorfarchiv |
| 8 | spec: |
| 9 | replicas: 1 |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: dorfarchiv |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: dorfarchiv |
| 17 | spec: |
| 18 | containers: |
| 19 | - name: web |
| 20 | # Image-Referenz wird von kustomize (images:) verwaltet — bare ref. |
| 21 | # Öffentliche Seite: nginx lauscht direkt auf 8080 (kein oauth2-proxy). |
| 22 | image: ghcr.io/dorfpflege-roessing/dorfarchiv |
| 23 | ports: |
| 24 | - containerPort: 8080 |
| 25 | name: http |
| 26 | readinessProbe: |
| 27 | httpGet: |
| 28 | path: / |
| 29 | port: 8080 |
| 30 | initialDelaySeconds: 3 |
| 31 | periodSeconds: 10 |
| 32 | livenessProbe: |
| 33 | httpGet: |
| 34 | path: / |
| 35 | port: 8080 |
| 36 | initialDelaySeconds: 5 |
| 37 | periodSeconds: 20 |
| 38 | resources: |
| 39 | requests: |
| 40 | cpu: 10m |
| 41 | memory: 24Mi |
| 42 | limits: |
| 43 | memory: 64Mi |