services.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ template "helm-guestbook.fullname" . }}
  6. labels:
  7. app: {{ template "helm-guestbook.name" . }}
  8. chart: {{ template "helm-guestbook.chart" . }}
  9. release: {{ .Release.Name }}
  10. heritage: {{ .Release.Service }}
  11. spec:
  12. type: {{ .Values.service.type }}
  13. ports:
  14. - port: {{ .Values.service.port }}
  15. targetPort: http
  16. protocol: TCP
  17. name: http
  18. selector:
  19. app: {{ template "helm-guestbook.name" . }}
  20. release: {{ .Release.Name }}
  21. ---
  22. apiVersion: v1
  23. kind: Service
  24. metadata:
  25. name: {{ template "helm-guestbook.fullname" . }}-preview
  26. labels:
  27. app: {{ template "helm-guestbook.name" . }}
  28. chart: {{ template "helm-guestbook.chart" . }}
  29. release: {{ .Release.Name }}
  30. heritage: {{ .Release.Service }}
  31. spec:
  32. type: {{ .Values.service.type }}
  33. ports:
  34. - port: {{ .Values.service.port }}
  35. targetPort: http
  36. protocol: TCP
  37. name: http
  38. selector:
  39. app: {{ template "helm-guestbook.name" . }}
  40. release: {{ .Release.Name }}