From a84b83026932e203530d855947f4c2918f684dbc Mon Sep 17 00:00:00 2001 From: Cyka <1354250064mdzz@gmail.com> Date: Fri, 10 Jan 2025 12:20:06 +0800 Subject: [PATCH] chore: update gateway service charts --- .../bucketeer/charts/api/templates/deployment.yaml | 2 ++ .../charts/api/templates/envoy-configmap.yaml | 12 ++++++++++++ manifests/bucketeer/charts/api/values.yaml | 1 + 3 files changed, 15 insertions(+) diff --git a/manifests/bucketeer/charts/api/templates/deployment.yaml b/manifests/bucketeer/charts/api/templates/deployment.yaml index 63d63a161a..650e7421c7 100644 --- a/manifests/bucketeer/charts/api/templates/deployment.yaml +++ b/manifests/bucketeer/charts/api/templates/deployment.yaml @@ -88,6 +88,8 @@ spec: value: "{{ .Values.env.accountService }}" - name: BUCKETEER_API_PUSH_SERVICE value: "{{ .Values.env.pushService }}" + - name: BUCKETEER_API_CODE_REF_SERVICE + value: "{{ .Values.env.codeRefService }}" - name: BUCKETEER_API_PORT value: "{{ .Values.env.port }}" - name: BUCKETEER_API_METRICS_PORT diff --git a/manifests/bucketeer/charts/api/templates/envoy-configmap.yaml b/manifests/bucketeer/charts/api/templates/envoy-configmap.yaml index 1f52615e9f..ca5682c528 100644 --- a/manifests/bucketeer/charts/api/templates/envoy-configmap.yaml +++ b/manifests/bucketeer/charts/api/templates/envoy-configmap.yaml @@ -285,6 +285,18 @@ data: retry_policy: retry_on: 5xx num_retries: 3 + - match: + headers: + - name: content-type + string_match: + exact: application/grpc + prefix: /bucketeer.coderef.CodeReferenceService + route: + cluster: web + timeout: 15s + retry_policy: + retry_on: 5xx + num_retries: 3 transport_socket: name: envoy.transport_sockets.tls typed_config: diff --git a/manifests/bucketeer/charts/api/values.yaml b/manifests/bucketeer/charts/api/values.yaml index df046cd7d3..956a76fbaf 100644 --- a/manifests/bucketeer/charts/api/values.yaml +++ b/manifests/bucketeer/charts/api/values.yaml @@ -27,6 +27,7 @@ env: featureService: localhost:9001 accountService: localhost:9001 pushService: localhost:9001 + codeRefService: localhost:9001 traceSamplingProbability: 0.0001 affinity: {} nodeSelector: {}