From c7149da4c8bbbccf888662b7edf55609550ad434 Mon Sep 17 00:00:00 2001 From: Ed Clark <107473135+clarked-msft@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:19:56 -0400 Subject: [PATCH] Add option to use existing ingress controller (#143) Co-authored-by: Josh Bradley --- .../graphrag/templates/graphrag-nginx-internal-controller.yaml | 2 ++ infra/helm/graphrag/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/infra/helm/graphrag/templates/graphrag-nginx-internal-controller.yaml b/infra/helm/graphrag/templates/graphrag-nginx-internal-controller.yaml index 95cfc5c..23510b1 100644 --- a/infra/helm/graphrag/templates/graphrag-nginx-internal-controller.yaml +++ b/infra/helm/graphrag/templates/graphrag-nginx-internal-controller.yaml @@ -1,3 +1,4 @@ +{{- if .Values.ingress.createIngressClass -}} apiVersion: approuting.kubernetes.azure.com/v1alpha1 kind: NginxIngressController metadata: @@ -9,3 +10,4 @@ spec: loadBalancerAnnotations: {{- toYaml . | nindent 4 }} {{- end }} +{{- end }} \ No newline at end of file diff --git a/infra/helm/graphrag/values.yaml b/infra/helm/graphrag/values.yaml index 405e59e..46f2e95 100644 --- a/infra/helm/graphrag/values.yaml +++ b/infra/helm/graphrag/values.yaml @@ -18,6 +18,7 @@ serviceAccount: ingress: enabled: true className: nginx-internal + createIngressClass: true host: graphrag.graphrag.io tls: [] annotations: