service.yaml 979 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ template "kibana.fullname" . }}
  6. labels: {{ include "kibana.labels" . | nindent 4 }}
  7. {{- if .Values.service.labels }}
  8. {{ toYaml .Values.service.labels | indent 4}}
  9. {{- end }}
  10. {{- with .Values.service.annotations }}
  11. annotations:
  12. {{ toYaml . | indent 4 }}
  13. {{- end }}
  14. spec:
  15. type: {{ .Values.service.type }}
  16. clusterIP: {{ .Values.service.clusterIP }}
  17. {{- if .Values.service.loadBalancerIP }}
  18. loadBalancerIP: {{ .Values.service.loadBalancerIP }}
  19. {{- end }}
  20. {{- with .Values.service.loadBalancerSourceRanges }}
  21. loadBalancerSourceRanges:
  22. {{ toYaml . | indent 4 }}
  23. {{- end }}
  24. ports:
  25. - port: {{ .Values.service.port }}
  26. {{- if .Values.service.nodePort }}
  27. nodePort: {{ .Values.service.nodePort }}
  28. {{- end }}
  29. protocol: TCP
  30. name: {{ .Values.service.httpPortName | default "http" }}
  31. targetPort: {{ .Values.httpPort }}
  32. selector:
  33. app: {{ .Chart.Name }}
  34. release: {{ .Release.Name | quote }}