From 66e8f222a7253ffd19608b915564e33a43b76357 Mon Sep 17 00:00:00 2001 From: Thumbscrew Date: Tue, 14 Mar 2023 22:10:06 +0000 Subject: [PATCH] init ingress config --- charts/unifi-controller/templates/ingress.yaml | 2 +- charts/unifi-controller/values.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/unifi-controller/templates/ingress.yaml b/charts/unifi-controller/templates/ingress.yaml index 8c749dc..c2783be 100644 --- a/charts/unifi-controller/templates/ingress.yaml +++ b/charts/unifi-controller/templates/ingress.yaml @@ -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}} diff --git a/charts/unifi-controller/values.yaml b/charts/unifi-controller/values.yaml index 32e84fa..bc674e6 100644 --- a/charts/unifi-controller/values.yaml +++ b/charts/unifi-controller/values.yaml @@ -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: {}