Skip to content

Commit 79f757b

Browse files
use statefulset instead of deployment
1 parent d46f080 commit 79f757b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/mealie/components/postgres/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: kustomize.config.k8s.io/v1alpha1
33
kind: Component
44
resources:
5-
- postgres-deployment.yaml
5+
- postgres-sts.yaml
66
- postgres-service.yaml
77
configMapGenerator:
88
- name: mealie

apps/mealie/components/postgres/postgres-deployment.yaml renamed to apps/mealie/components/postgres/postgres-sts.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
apiVersion: apps/v1
3-
kind: Deployment
3+
kind: StatefulSet
44
metadata:
55
name: postgres
66
spec:
7+
serviceName: postgres
78
replicas: 1
89
selector:
910
matchLabels:

0 commit comments

Comments
 (0)