Commit f1c99176 authored by Waqar Ahmed's avatar Waqar Ahmed

Render nextcloud postgres service using library chart

parent 4b3bad4e
apiVersion: v1 {{ $ports := list }}
kind: Service {{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }}
metadata: {{ $params := . }}
name: {{ template "nextcloud.fullname" . }}-postgres {{ $_ := set $params "service" (dict "type" "ClusterIP" "ports" $ports "nameSuffix" "postgres" ) }}
labels: {{ include "common.classes.service" $params }}
app.kubernetes.io/name: {{ include "nextcloud.name" . }}-postgres
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: ClusterIP
ports:
- port: 5432
protocol: TCP
name: postgres-tcp
selector:
{{- include "nextcloud.postgres.selectorLabels" . | nindent 4 }}
apiVersion: v1 {{- include "common.serviceaccount" . -}}
kind: ServiceAccount
metadata:
name: "{{ template "nextcloud.serviceAccountName" . }}"
namespace: {{ .Release.Namespace }}
--- ---
...@@ -12,7 +8,7 @@ metadata: ...@@ -12,7 +8,7 @@ metadata:
name: "{{ .Release.Name }}-service-account-role-binding" name: "{{ .Release.Name }}-service-account-role-binding"
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: "{{ template "nextcloud.serviceAccountName" . }}" name: "{{ template "common.names.serviceAccountName" . }}"
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
roleRef: roleRef:
kind: Role kind: Role
......
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