Commit 0651c9fc authored by Waqar Ahmed's avatar Waqar Ahmed

Update nextcloud service to use library chart

parent b56fad03
apiVersion: v1 {{ $svc := .Values.service }}
kind: Service {{ $ports := list }}
metadata: {{ $ports = mustAppend $ports (dict "name" "http" "port" 80 "nodePort" $svc.nodePort) }}
name: {{ template "nextcloud.fullname" . }} {{ $params := . }}
labels: {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
app.kubernetes.io/name: {{ include "nextcloud.name" . }} {{ include "common.classes.service" $params }}
helm.sh/chart: {{ include "nextcloud.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/component: app
spec:
type: NodePort
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
nodePort: {{ default "" .Values.service.nodePort}}
selector:
{{- include "nextcloud.selectorLabels" . | nindent 4 }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment