Restore Home Assistant PostgreSQL service alias
This commit is contained in:
1 parent
e089e75a99
commit
26b28f1757
3 files changed
+17
-1
No files matched your search
@@ -20,7 +20,7 @@ patches:
|
||||
env:
|
||||
- {name: BACKUP_TARGET, value: homeassistant}
|
||||
- {name: BACKUP_MODE, value: database}
|
||||
- {name: PGHOST, value: postgresql}
|
||||
- {name: PGHOST, value: homeassistant-cnpg-rw}
|
||||
- name: PGUSER
|
||||
valueFrom: {secretKeyRef: {name: homeassistant-postgresql, key: USERDB_USER}}
|
||||
- name: PGDATABASE
|
||||
|
||||
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster.yaml
|
||||
- service.yaml
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: postgresql
|
||||
namespace: homeassistant
|
||||
spec:
|
||||
ports:
|
||||
- name: postgresql
|
||||
port: 5432
|
||||
protocol: TCP
|
||||
targetPort: 5432
|
||||
selector:
|
||||
cnpg.io/cluster: homeassistant-cnpg
|
||||
cnpg.io/instanceRole: primary
|
||||
type: ClusterIP
|
||||
Reference in new issue
Block a user