Skip to content

Commit

Permalink
fix: allow clustering multiple instances of Stream in the same namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninguyot committed Jul 19, 2024
1 parent f96a5e2 commit 3d816f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/akka.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ akka {
discovery {
kubernetes-api {
pod-namespace = "{{ .Release.Namespace }}"
pod-label-selector = "app.kubernetes.io/name={{ include "common.names.name" . }}"
pod-label-selector = "app.kubernetes.io/name={{ include "common.names.name" . }},app.kubernetes.io/instance={{ .Release.Name }}"
}
}
management {
Expand Down Expand Up @@ -83,4 +83,4 @@ akka {
}
}
coordinated-shutdown.exit-jvm = off
}
}
6 changes: 5 additions & 1 deletion templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ spec:
{{- if .Values.environment }}
{{- toYaml .Values.environment | nindent 12 }}
{{- end }}
- name: AKKA_ACTOR_SYSTEM
valueFrom:
fieldRef:
fieldPath: metadata.labels['app.kubernetes.io/instance']
- name: HOSTNAME
valueFrom:
fieldRef:
Expand Down Expand Up @@ -182,4 +186,4 @@ spec:
{{- end }}
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- end }}

0 comments on commit 3d816f1

Please sign in to comment.