feat: initialize Harbor Helm chart with full component templates and configuration values
This commit is contained in:
27
manifest/harbor/templates/portal/service.yaml
Normal file
27
manifest/harbor/templates/portal/service.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "{{ template "harbor.portal" . }}"
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
labels:
|
||||
{{ include "harbor.labels" . | indent 4 }}
|
||||
{{- with .Values.portal.serviceAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if or (eq .Values.expose.ingress.controller "gce") (eq .Values.expose.ingress.controller "alb") (eq .Values.expose.ingress.controller "f5-bigip") }}
|
||||
type: NodePort
|
||||
{{- end }}
|
||||
{{- if .Values.ipFamily.policy }}
|
||||
ipFamilyPolicy: {{ .Values.ipFamily.policy }}
|
||||
{{- end }}
|
||||
{{- if .Values.ipFamily.families }}
|
||||
ipFamilies: {{ toYaml .Values.ipFamily.families | nindent 4 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- port: {{ template "harbor.portal.servicePort" . }}
|
||||
targetPort: {{ template "harbor.portal.containerPort" . }}
|
||||
selector:
|
||||
{{ include "harbor.matchLabels" . | indent 4 }}
|
||||
component: portal
|
||||
Reference in New Issue
Block a user