init ingress config

This commit is contained in:
James 2023-03-14 22:10:06 +00:00
parent d1015887e8
commit 66e8f222a7
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "unifi-controller.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- $svcPort := 8443 -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}

View File

@ -59,14 +59,14 @@ ingress:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
- host: unifi-controller.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# - secretName: unifi-controller-tls
# hosts:
# - chart-example.local
# - unifi-controller.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
@ -74,11 +74,11 @@ resources: {}
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# cpu: 400m
# memory: 1Gi
# requests:
# cpu: 100m
# memory: 128Mi
# cpu: 200m
# memory: 512Mi
nodeSelector: {}