service.yaml 349 B

1234567891011121314151617
  1. {{- if .Values.single.enabled }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ .Values.app.name }}
  6. labels:
  7. app: {{ .Values.app.name }}
  8. spec:
  9. type: {{ .Values.service.type }}
  10. ports:
  11. - port: {{ .Values.service.port }}
  12. targetPort: http
  13. protocol: TCP
  14. name: http
  15. selector:
  16. app: {{ .Values.app.name }}
  17. {{- end }}