Skip to content

Commit

Permalink
Update StatefulSet to decorate it
Browse files Browse the repository at this point in the history
 StatefulSet must be updated to set the annotations that signal Kubernetes to decorate this StatefulSet and create a service for each pod.
  • Loading branch information
PouriaAmini committed Mar 22, 2023
1 parent 9626771 commit 3340162
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/dislog/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 3340162

Please sign in to comment.