Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: update ingress health check (#7888)

darkskygite26ba48a4563
diff --git a/.github/helm/affine/charts/graphql/templates/service.yaml b/.github/helm/affine/charts/graphql/templates/service.yaml
index 729d7246b2..4c34622c41 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 bc50ea9c39..5367047004 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 0000000000..cef9593179
--- /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
+