diff --git a/charts/posthog/templates/ingress.yaml b/charts/posthog/templates/ingress.yaml index bcbde86b..0c2bab7d 100644 --- a/charts/posthog/templates/ingress.yaml +++ b/charts/posthog/templates/ingress.yaml @@ -33,6 +33,9 @@ metadata: {{- end }} {{- end }} spec: + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName | quote }} + {{- else }} {{- if or (eq (include "ingress.letsencrypt" .) "true") (or (.Values.ingress.secretName) (.Values.ingress.gcp.secretName)) }} tls: - hosts: diff --git a/charts/posthog/values.yaml b/charts/posthog/values.yaml index aebb0f84..d9d22cbf 100644 --- a/charts/posthog/values.yaml +++ b/charts/posthog/values.yaml @@ -1097,6 +1097,8 @@ ingress: type: # -- URL to address your PostHog installation. You will need to set up DNS after installation hostname: + # -- Ingress controller that you want to use. Only available for Kubernetes >= 1.18 + ingressClassName: gcp: # -- Specifies the name of the global IP address resource to be associated with the google clb ip_name: "posthog"