You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
628 B

  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: {{include "wiki.fullname" .}}
  5. labels: {{- include "wiki.labels" . | nindent 4 }}
  6. {{- with .Values.service.annotations }}
  7. annotations:
  8. {{- range $key, $value := . }}
  9. {{ $key }}: {{ $value | quote }}
  10. {{- end }}
  11. {{- end }}
  12. spec:
  13. type: {{.Values.service.type}}
  14. ports:
  15. - port: {{ default "80" .Values.service.port}}
  16. targetPort: http
  17. protocol: TCP
  18. name: http
  19. - port: {{ default "443" .Values.service.httpsPort}}
  20. targetPort: http
  21. protocol: TCP
  22. name: https
  23. selector: {{- include "wiki.selectorLabels" . | nindent 4}}