Skip to content

Commit 8f2c8a6

Browse files
chore: add backend config
1 parent bba1840 commit 8f2c8a6

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{- if .Values.gcpMultiCluster.enabled }}
2+
apiVersion: cloud.google.com/v1
3+
kind: BackendConfig
4+
metadata:
5+
name: {{ .Values.gcpMultiCluster.service.name }}-backend-config
6+
namespace: {{ .Values.namespace }}
7+
spec:
8+
healthCheck:
9+
type: HTTP2
10+
requestPath: /
11+
timeoutSec: 30
12+
connectionDraining:
13+
drainingTimeoutSec: 300
14+
{{- end }}

manifests/bucketeer/charts/web/templates/multi-cluster-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
release: {{ template "web.fullname" . }}
1111
heritage: {{ .Release.Service }}
1212
annotations:
13-
cloud.google.com/backend-config: '{"ports": {"{{ .Values.service.httpPort }}":"{{ template "web.fullname" . }}"}}'
13+
cloud.google.com/backend-config: '{"ports": {"{{ .Values.service.httpPort }}":"{{ .Values.gcpMultiCluster.service.name }}-backend-config"}}'
1414
networking.gke.io/app-protocols: '{"http-service":"HTTP2"}'
1515
cloud.google.com/neg: '{"ingress": true}'
1616
spec:

manifests/bucketeer/charts/web/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,4 @@ gcpMultiCluster:
159159
backend:
160160
serviceName: web
161161
servicePort: 9003
162+

0 commit comments

Comments
 (0)