service.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ template "cello-master.fullname" . }}
  5. labels:
  6. app: {{ template "cello-master.name" . }}
  7. chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
  8. release: {{ .Release.Name }}
  9. heritage: {{ .Release.Service }}
  10. spec:
  11. type: {{ .Values.service.type }}
  12. ports:
  13. - port: 80
  14. targetPort: 80
  15. protocol: TCP
  16. name: engine
  17. - port: 8080
  18. targetPort: 8080
  19. protocol: TCP
  20. name: operator
  21. - port: 8081
  22. targetPort: 8081
  23. protocol: TCP
  24. name: user
  25. # - port: {{ .Values.nfs.nfsPort }}
  26. # targetPort: nfs
  27. # protocol: TCP
  28. # name: nfs
  29. #{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.nfs.nfsNodePort))) }}
  30. # nodePort: {{ .Values.nfs.nfsNodePort }}
  31. #{{- end }}
  32. # - port: {{ .Values.nfs.mountdPort }}
  33. # targetPort: mountd
  34. # protocol: TCP
  35. # name: mountd
  36. #{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.nfs.mountdNodePort))) }}
  37. # nodePort: {{ .Values.nfs.mountdNodePort }}
  38. #{{- end }}
  39. # - port: {{ .Values.nfs.rpcbindPort }}
  40. # targetPort: rpcbind-tcp
  41. # protocol: TCP
  42. # name: rpcbind-tcp
  43. #{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.nfs.rpcbindNodePort))) }}
  44. # nodePort: {{ .Values.nfs.rpcbindNodePort }}
  45. #{{- end }}
  46. # - port: {{ .Values.nfs.rpcbindPort }}
  47. # targetPort: rpcbind-udp
  48. # protocol: UDP
  49. # name: rpcbind-udp
  50. #{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.nfs.rpcbindNodePort))) }}
  51. # nodePort: {{ .Values.nfs.rpcbindNodePort }}
  52. #{{- end }}
  53. selector:
  54. app: {{ template "cello-master.name" . }}
  55. release: {{ .Release.Name }}