Skip to content

Feature Request, Service Annotations #570

@kw1knode

Description

@kw1knode

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 }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions