Add ability to add service annotations to charts.
{{- $values := $.Values.statefulNode -}}
{{- $componentName := "stateful-node" -}}
{{- $componentLabel := include "erigon.componentLabelFor" $componentName -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "erigon.fullname" . }}-{{ $componentName }}
labels:
{{- include "erigon.labels" . | nindent 4 }}
{{- $componentLabel | nindent 4 }}
{{- with $values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ default "ClusterIP" $values.service.type }}
{{- /* use the same ports map as the headless service */}}
ports:
{{- range $portName, $portNumber := $values.service.ports }}
- name: {{ $portName }}
port: {{ $portNumber }}
targetPort: {{ $portName }}
protocol: TCP
{{- end }}
selector:
{{- include "erigon.selectorLabels" . | nindent 4 }}
{{- $componentLabel | nindent 4 }}
Add ability to add service annotations to charts.
{{- $values := $.Values.statefulNode -}} {{- $componentName := "stateful-node" -}} {{- $componentLabel := include "erigon.componentLabelFor" $componentName -}} apiVersion: v1 kind: Service metadata: name: {{ include "erigon.fullname" . }}-{{ $componentName }} labels: {{- include "erigon.labels" . | nindent 4 }} {{- $componentLabel | nindent 4 }} {{- with $values.service.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: {{ default "ClusterIP" $values.service.type }} {{- /* use the same ports map as the headless service */}} ports: {{- range $portName, $portNumber := $values.service.ports }} - name: {{ $portName }} port: {{ $portNumber }} targetPort: {{ $portName }} protocol: TCP {{- end }} selector: {{- include "erigon.selectorLabels" . | nindent 4 }} {{- $componentLabel | nindent 4 }}