Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fixes #104 run-time detection of namespace without helm (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Allen authored Jan 13, 2021
1 parent 56a9b65 commit 6b74e82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/core-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ spec:
{{- if not .Values.core.standalone }}
# We advertise the discovery-lb addresses (see discovery-lb.yaml) because
# it is for internal cluster comms and is limited to private ports.
export DISCOVERY_HOST="discovery-{{ template "neo4j.fullname" . }}-${core_idx}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
# See also: https://github.com/neo4j-contrib/neo4j-helm/issues/104
export NAMESPACE=$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)
export DISCOVERY_HOST="discovery-{{ template "neo4j.fullname" . }}-${core_idx}.$NAMESPACE.svc.{{ .Values.clusterDomain }}"
export NEO4J_causal__clustering_discovery__advertised__address="$DISCOVERY_HOST:5000"
export NEO4J_causal__clustering_transaction__advertised__address="$DISCOVERY_HOST:6000"
export NEO4J_causal__clustering_raft__advertised__address="$DISCOVERY_HOST:7000"
Expand Down

0 comments on commit 6b74e82

Please sign in to comment.