service-memcached-chunks.yaml 911 B

123456789101112131415161718192021222324252627282930313233
  1. {{- if .Values.memcachedChunks.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "loki.memcachedChunksFullname" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "loki.memcachedChunksSelectorLabels" . | nindent 4 }}
  9. {{- with .Values.memcachedChunks.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.memcachedChunksSelectorLabels" . | nindent 4 }}
  33. {{- end }}