mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
* Add support for statically assigning nodePort and update documentation accordingly Signed-off-by: Matt Brewster <brewsterops@gmail.com> * * [stable/nextcloud] Updated the version to 1.9.4 Signed-off-by: Matt Brewster <brewsterops@gmail.com> * * [stable/nextcloud] Re-adding mistakenly deleted requirements.lock Signed-off-by: Matt Brewster <brewsterops@gmail.com>
25 lines
781 B
YAML
25 lines
781 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "nextcloud.fullname" . }}
|
|
labels:
|
|
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
|
|
helm.sh/chart: {{ include "nextcloud.chart" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
{{- if eq .Values.service.type "LoadBalancer" }}
|
|
loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }}
|
|
{{- end }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
{{- if eq .Values.service.type "NodePort" }}
|
|
nodePort: {{ default "" .Values.service.nodePort}}
|
|
{{- end }}
|
|
selector:
|
|
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
|