Skip to content

Commit ac39df8

Browse files
authored
chore(postgresql-cluster): bind add domain
1 parent 663272a commit ac39df8

9 files changed

Lines changed: 42 additions & 9 deletions

File tree

addons/postgresql-cluster/15/chart/postgresql-cluster/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,4 +432,5 @@ networkPolicy:
432432
## (with the correct destination port).
433433
##
434434
allowCurrentNamespace: true
435-
allowNamespaces:
435+
allowNamespaces:
436+
clusterDomain: cluster.local

addons/postgresql-cluster/15/plans/standard-16c64g400/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

addons/postgresql-cluster/15/plans/standard-1c2g10/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

addons/postgresql-cluster/15/plans/standard-2c4g20/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

addons/postgresql-cluster/15/plans/standard-2c8g50/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

addons/postgresql-cluster/15/plans/standard-32c128g800/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

addons/postgresql-cluster/15/plans/standard-32c64g4000/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

addons/postgresql-cluster/15/plans/standard-4c16g100/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

addons/postgresql-cluster/15/plans/standard-8c32g200/bind.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ credential:
1010
serviceRef:
1111
name: {{ template "common.names.fullname" . }}-repl
1212
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
13-
{{- end }}
13+
{{- end }}
14+
- name: DOMAIN_MASTER
15+
value: {{ template "common.names.fullname" . }}-master.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
16+
- name: DOMAIN_REPL
17+
value: {{ template "common.names.fullname" . }}-repl.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
1418
- name: MASTER_HOST
1519
valueFrom:
1620
serviceRef:

0 commit comments

Comments
 (0)