service-ingester-headless.yaml 762 B

1234567891011121314151617181920212223242526272829
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ include "loki.ingesterFullname" . }}-headless
  5. namespace: {{ .Release.Namespace }}
  6. labels:
  7. {{- include "loki.ingesterSelectorLabels" . | nindent 4 }}
  8. prometheus.io/service-monitor: "false"
  9. {{- with .Values.loki.serviceAnnotations }}
  10. annotations:
  11. {{- toYaml . | nindent 4 }}
  12. {{- end }}
  13. spec:
  14. type: ClusterIP
  15. clusterIP: None
  16. ports:
  17. - name: http
  18. port: 3100
  19. targetPort: http
  20. protocol: TCP
  21. - name: grpc
  22. port: 9095
  23. targetPort: grpc
  24. protocol: TCP
  25. {{- if .Values.ingester.appProtocol.grpc }}
  26. appProtocol: {{ .Values.ingester.appProtocol.grpc }}
  27. {{- end }}
  28. selector:
  29. {{- include "loki.ingesterSelectorLabels" . | nindent 4 }}