From e26ba48a4563621f1e6f0228e259197da431daa8 Mon Sep 17 00:00:00 2001 From: darkskygit Date: Thu, 15 Aug 2024 12:16:25 +0000 Subject: [PATCH] feat: update ingress health check (#7888) --- .../helm/affine/charts/graphql/templates/service.yaml | 4 ++++ .github/helm/affine/values.yaml | 4 ++-- .github/helm/separate-config/backend-config.yaml | 10 ++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .github/helm/separate-config/backend-config.yaml diff --git a/.github/helm/affine/charts/graphql/templates/service.yaml b/.github/helm/affine/charts/graphql/templates/service.yaml index 729d7246b..4c34622c4 100644 --- a/.github/helm/affine/charts/graphql/templates/service.yaml +++ b/.github/helm/affine/charts/graphql/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "graphql.fullname" . }} labels: {{- include "graphql.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/.github/helm/affine/values.yaml b/.github/helm/affine/values.yaml index bc50ea9c3..536704700 100644 --- a/.github/helm/affine/values.yaml +++ b/.github/helm/affine/values.yaml @@ -36,14 +36,14 @@ graphql: type: ClusterIP port: 3000 annotations: - cloud.google.com/backend-config: '{"default": "affine-backendconfig"}' + cloud.google.com/backend-config: '{"default": "affine-api-backendconfig"}' sync: service: type: ClusterIP port: 3010 annotations: - cloud.google.com/backend-config: '{"default": "affine-backendconfig"}' + cloud.google.com/backend-config: '{"default": "affine-api-backendconfig"}' web: service: diff --git a/.github/helm/separate-config/backend-config.yaml b/.github/helm/separate-config/backend-config.yaml new file mode 100644 index 000000000..cef959317 --- /dev/null +++ b/.github/helm/separate-config/backend-config.yaml @@ -0,0 +1,10 @@ +apiVersion: cloud.google.com/v1 +kind: BackendConfig +metadata: + name: "affine-api-backendconfig" +spec: + healthCheck: + timeoutSec: 1 + type: HTTP + requestPath: /info +