feat: initialize Harbor Helm chart with full component templates and configuration values
This commit is contained in:
21
manifest/harbor/templates/database/database-svc.yaml
Normal file
21
manifest/harbor/templates/database/database-svc.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- if eq .Values.database.type "internal" -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "{{ template "harbor.database" . }}"
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
labels:
|
||||
{{ include "harbor.labels" . | indent 4 }}
|
||||
spec:
|
||||
{{- if .Values.ipFamily.policy }}
|
||||
ipFamilyPolicy: {{ .Values.ipFamily.policy }}
|
||||
{{- end }}
|
||||
{{- if .Values.ipFamily.families }}
|
||||
ipFamilies: {{ toYaml .Values.ipFamily.families | nindent 4 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- port: 5432
|
||||
selector:
|
||||
{{ include "harbor.matchLabels" . | indent 4 }}
|
||||
component: database
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user