service-query-frontend.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ include "loki.queryFrontendFullname" . }}
  5. namespace: {{ .Release.Namespace }}
  6. labels:
  7. {{- include "loki.queryFrontendLabels" . | nindent 4 }}
  8. {{- with .Values.queryFrontend.serviceLabels }}
  9. {{- toYaml . | nindent 4 }}
  10. {{- end }}
  11. {{- with .Values.loki.serviceAnnotations }}
  12. annotations:
  13. {{- toYaml . | nindent 4 }}
  14. {{- end }}
  15. spec:
  16. type: ClusterIP
  17. publishNotReadyAddresses: true
  18. ports:
  19. - name: http
  20. port: 3100
  21. targetPort: http
  22. protocol: TCP
  23. - name: grpc
  24. port: 9095
  25. targetPort: grpc
  26. protocol: TCP
  27. {{- if .Values.queryFrontend.appProtocol.grpc }}
  28. appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }}
  29. {{- end }}
  30. - name: grpclb
  31. port: 9096
  32. targetPort: grpc
  33. protocol: TCP
  34. {{- if .Values.queryFrontend.appProtocol.grpc }}
  35. appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }}
  36. {{- end }}
  37. selector:
  38. {{- include "loki.queryFrontendSelectorLabels" . | nindent 4 }}