From a2c3449cc316a617462b8afba2e7ea27d9fae10c Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Wed, 7 Feb 2024 13:55:12 -0600 Subject: [PATCH] feat: Update ai-server chart to allow X-Product-Version header to be included in requests. --- charts/ai-server/Chart.yaml | 2 +- charts/ai-server/templates/ai-server.yml | 2 +- charts/ai-server/templates/ingress.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/ai-server/Chart.yaml b/charts/ai-server/Chart.yaml index 8689b7b..a62a2e4 100644 --- a/charts/ai-server/Chart.yaml +++ b/charts/ai-server/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - email: dustin@elegantthemes.com name: Elegant Themes name: ai-server -version: 1.2.3 +version: 1.2.4 diff --git a/charts/ai-server/templates/ai-server.yml b/charts/ai-server/templates/ai-server.yml index c280b6d..b55410e 100644 --- a/charts/ai-server/templates/ai-server.yml +++ b/charts/ai-server/templates/ai-server.yml @@ -105,7 +105,7 @@ spec: cpu: 100m memory: 100Mi limits: - cpu: 1000m + cpu: '2' memory: {{ .Values.MEMORY_LIMIT | squote }} startupProbe: exec: diff --git a/charts/ai-server/templates/ingress.yml b/charts/ai-server/templates/ingress.yml index 1dbc520..20dbbc1 100644 --- a/charts/ai-server/templates/ingress.yml +++ b/charts/ai-server/templates/ingress.yml @@ -16,6 +16,7 @@ metadata: nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/enable-rewrite-log: "false" nginx.ingress.kubernetes.io/ssl-redirect: "false" + nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Product-Version" {{ if not (eq .Values.AI_SERVER_ENV "production") }}nginx.ingress.kubernetes.io/proxy-read-timeout: "120"{{ end }} spec: tls: