mirror of
https://github.com/truenas/charts.git
synced 2026-05-16 14:12:59 +08:00
Update nextcloud service to use library chart
This commit is contained in:
@@ -1,20 +1,6 @@
|
|||||||
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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user