service-memcached-frontend.yaml 921 B

123456789101112131415161718192021222324252627282930313233
  1. {{- if .Values.memcachedFrontend.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "loki.memcachedFrontendFullname" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "loki.memcachedFrontendSelectorLabels" . | nindent 4 }}
  9. {{- with .Values.memcachedFrontend.serviceLabels }}
  10. {{- toYaml . | nindent 4 }}
  11. {{- end }}
  12. {{- with .Values.memcached.serviceAnnotations }}
  13. annotations:
  14. {{- toYaml . | nindent 4 }}
  15. {{- end }}
  16. spec:
  17. type: ClusterIP
  18. clusterIP: None
  19. ports:
  20. - name: memcached-client
  21. port: 11211
  22. targetPort: http
  23. protocol: TCP
  24. {{- if .Values.memcached.appProtocol }}
  25. appProtocol: {{ .Values.memcached.appProtocol }}
  26. {{- end }}
  27. - name: http-metrics
  28. port: 9150
  29. targetPort: http-metrics
  30. protocol: TCP
  31. selector:
  32. {{- include "loki.memcachedFrontendSelectorLabels" . | nindent 4 }}
  33. {{- end }}