service.yaml 758 B

1234567891011121314151617181920212223242526
  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. {{- if eq .Values.service.type "LoadBalancer" }}
  15. loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }}
  16. {{- end }}
  17. ports:
  18. - port: {{ default "80" .Values.service.port}}
  19. targetPort: http
  20. protocol: TCP
  21. name: http
  22. - port: {{ default "443" .Values.service.httpsPort}}
  23. targetPort: http
  24. protocol: TCP
  25. name: https
  26. selector: {{- include "wiki.selectorLabels" . | nindent 4}}