service-compactor.yaml 899 B

12345678910111213141516171819202122232425262728293031323334
  1. {{- if .Values.compactor.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "loki.compactorFullname" . }}
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. {{- include "loki.labels" . | nindent 4 }}
  9. {{- with .Values.compactor.serviceLabels }}
  10. {{- toYaml . | nindent 4 }}
  11. {{- end }}
  12. app.kubernetes.io/component: compactor
  13. {{- with .Values.loki.serviceAnnotations }}
  14. annotations:
  15. {{- toYaml . | nindent 4 }}
  16. {{- end }}
  17. spec:
  18. type: ClusterIP
  19. ports:
  20. - name: http
  21. port: 3100
  22. targetPort: http
  23. protocol: TCP
  24. - name: grpc
  25. port: 9095
  26. targetPort: grpc
  27. protocol: TCP
  28. {{- if .Values.compactor.appProtocol.grpc }}
  29. appProtocol: {{ .Values.compactor.appProtocol.grpc }}
  30. {{- end }}
  31. selector:
  32. {{- include "loki.selectorLabels" . | nindent 4 }}
  33. app.kubernetes.io/component: compactor
  34. {{- end }}