service.yaml 393 B

12345678910111213141516
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{ template "app-name" . }}
  5. labels:
  6. app: {{ template "app-name" . }}
  7. release: {{ .Release.Name }}
  8. spec:
  9. type: {{ .Values.service.type }}
  10. ports:
  11. - name: http
  12. port: {{ .Values.service.port }}
  13. targetPort: {{ .Values.service.targetPort }}
  14. selector:
  15. app: {{ template "app-name" . }}
  16. release: {{ .Release.Name }}