# grafana_charts_service-memcached.yaml
{{- if .Values.memcached.enabled }}
apiVersion: v1
kind: Service
metadata:
  name: {{ include "tempo.resourceName" (dict "ctx" . "component" "memcached") }}
  namespace: {{ .Release.Namespace }}
  labels:
  {{- include "tempo.labels" (dict "ctx" . "component" "memcached") | nindent 4 }}
  {{- with .Values.memcached.service.annotations }}
  annotations:
    {{- tpl (toYaml . | nindent 4) $ }}
  {{- end }}
spec:
  ipFamilies: {{ .Values.tempo.service.ipFamilies }}
  ipFamilyPolicy: {{ .Values.tempo.service.ipFamilyPolicy }}
  ports:
  - name: memcached-client
    port: 11211
    targetPort: client
  - name: http-metrics
    port: 9150
    targetPort: http-metrics
  selector:
    {{- include "tempo.selectorLabels" (dict "ctx" . "component" "memcached") | nindent 4 }}
{{- end}}