service-index-gateway.yaml 680 B

12345678910111213141516171819202122232425262728
  1. {{- if .Values.indexGateway.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ include "loki.indexGatewayFullname" . }}
  6. labels:
  7. {{- include "loki.indexGatewayLabels" . | nindent 4 }}
  8. {{- with .Values.indexGateway.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. ports:
  18. - name: http
  19. port: 3100
  20. targetPort: http
  21. protocol: TCP
  22. - name: grpc
  23. port: 9095
  24. targetPort: grpc
  25. protocol: TCP
  26. selector:
  27. {{- include "loki.indexGatewaySelectorLabels" . | nindent 4 }}
  28. {{- end }}