Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 70faa3f

Browse files
Blagoj Atanasovskiatanasovskib
authored andcommitted
Use the Release.Namespace in the default template for the service host
1 parent 87be28e commit 70faa3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

helm-chart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ helm install --name my-release -f myvalues.yaml .
5050
| `replicaCount` | Number of pods for the connector | `1` |
5151
| `connection.user` | Username to connect to TimescaleDB with | `postgres` |
5252
| `password.secretTemplate` | The template for generating the name of a secret object which will hold the db password | `{{ .Release.Name }}-timescaledb-passwords` |
53-
| `host.nameTemplate` | The template for generating the hostname of the db | `{{ .Release.Name }}.default.svc.cluster.local` |
53+
| `host.nameTemplate` | The template for generating the hostname of the db | `{{ .Release.Name }}.{{ .Release.Namespace}}.svc.cluster.local` |
5454
| `port` | Port the db listens to | `5432` |
5555
| `service.port` | Port the connector pods will accept connections on | `9201` |
5656
| `service.loadBalancer.enabled` | If enabled will create an LB for the connector, ClusterIP otherwise | `true` |

helm-chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ connection:
1818
# nameTemplate: "{{ already-deployed-timescale.default.svc.cluster.local }}"
1919
# for a host name of a timescaledb instance
2020
# deployed in the same release (without a cluster override) set:
21-
# nameTemplate: "{{ .Release.Name }}".default.svc.cluster.local
22-
nameTemplate: "{{ .Release.Name }}.default.svc.cluster.local"
21+
# nameTemplate: {{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local
22+
nameTemplate: "{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local"
2323
port: 5432
2424

2525
# settings for the service to be created that will expose

0 commit comments

Comments
 (0)