tweak(platform) Add frontendconfig for redirect (#8160)

* add frontendconfig for redirect

* add the files
pull/8169/head^2
Aarushi 2024-09-25 23:44:54 +01:00 committed by GitHub
parent 5e2874c315
commit aec715cb2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
apiVersion: networking.gke.io/v1beta1
kind: FrontendConfig
metadata:
name: {{ include "autogpt-builder.fullname" . }}-frontend-config
spec:
redirectToHttps:
enabled: true
responseCodeName: 301

View File

@ -25,6 +25,7 @@ ingress:
kubernetes.io/ingress.global-static-ip-name: "agpt-dev-agpt-builder-ip"
networking.gke.io/managed-certificates: "autogpt-builder-cert"
kubernetes.io/ingress.allow-http: "true"
networking.gke.io/v1beta1.FrontendConfig: "autogpt-builder-frontend-config"
hosts:
- host: dev-builder.agpt.co
paths: