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 +