Skip to content

Commit

Permalink
Update Cassandra host URLs to remove the ".cluster.local" suffix (#485)
Browse files Browse the repository at this point in the history
* Update Cassandra host URLs to remove the ".cluster.local" suffix
  • Loading branch information
cege7480 authored Jun 14, 2024
1 parent f6e0e3a commit b25c4fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/temporal/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ All Cassandra hosts.
{{- define "cassandra.hosts" -}}
{{- range $i := (until (int .Values.cassandra.config.cluster_size)) }}
{{- $cassandraName := include "call-nested" (list $ "cassandra" "cassandra.fullname") -}}
{{- printf "%s.%s.svc.cluster.local," $cassandraName $.Release.Namespace -}}
{{- printf "%s.%s.svc," $cassandraName $.Release.Namespace -}}
{{- end }}
{{- end -}}

Expand All @@ -359,7 +359,7 @@ The first Cassandra host in the stateful set.
*/}}
{{- define "cassandra.host" -}}
{{- $cassandraName := include "call-nested" (list . "cassandra" "cassandra.fullname") -}}
{{- printf "%s.%s.svc.cluster.local" $cassandraName .Release.Namespace -}}
{{- printf "%s.%s.svc" $cassandraName .Release.Namespace -}}
{{- end -}}

{{/*
Expand Down
2 changes: 1 addition & 1 deletion charts/temporal/values/values.cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ server:
# ResourceExhausted: 0.15

cassandra:
hosts: ["cassandra.default.svc.cluster.local"]
hosts: ["cassandra.default.svc"]
port: 9042
keyspace: temporal
user: "user"
Expand Down

0 comments on commit b25c4fc

Please sign in to comment.