diff --git a/deploy/dislog/templates/statefulset.yaml b/deploy/dislog/templates/statefulset.yaml index 18e3551..58fd6e9 100644 --- a/deploy/dislog/templates/statefulset.yaml +++ b/deploy/dislog/templates/statefulset.yaml @@ -4,6 +4,11 @@ metadata: name: {{ include "dislog.fullname" . }} namespace: {{ .Release.Namespace }} labels: {{ include "dislog.labels" . | nindent 4 }} + {{ if .Values.service.lb }} + annotations: + service-per-pod-label: "statefulset.kubernetes.io/pod-name" + service-per-pod-ports: "{{.Values.rpcPort}}:{{.Values.rpcPort}}" + {{ end }} spec: selector: matchLabels: {{ include "dislog.selectorLabels" . | nindent 6 }}