build/deploy/build-ingress.yaml

136 строки
2.8 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: prod
name: build-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: ingress
networking.gke.io/managed-certificates: dev-test-cert,build-cert,dev-cert,gerritbot-cert,maintner-cert
kubernetes.io/ingress.class: "gce"
networking.gke.io/v1beta1.FrontendConfig: build-ingress-frontend
spec:
rules:
- host: dev-test.golang.org
http:
paths:
- pathType: ImplementationSpecific
path: /owners
backend:
service:
name: devapp-internal-iap
port:
number: 444
- pathType: ImplementationSpecific
path: /*
backend:
service:
name: devapp-internal
port:
number: 444
- host: build.golang.org
http:
paths:
- pathType: ImplementationSpecific
path: /*
backend:
service:
name: coordinator-internal
port:
number: 444
- host: dev.golang.org
http:
paths:
- pathType: ImplementationSpecific
path: /*
backend:
service:
name: devapp-internal
port:
number: 444
- host: gerritbot.golang.org
http:
paths:
- pathType: ImplementationSpecific
path: /*
backend:
service:
name: gerritbot-internal
port:
number: 444
- host: maintner.golang.org
http:
paths:
- pathType: ImplementationSpecific
path: /*
backend:
service:
name: maintnerd-internal
port:
number: 444
---
apiVersion: networking.gke.io/v1beta1
kind: FrontendConfig
metadata:
namespace: prod
name: build-ingress-frontend
spec:
redirectToHttps:
enabled: true
responseCodeName: FOUND
---
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
namespace: prod
name: build-ingress-iap-backend
spec:
iap:
enabled: true
oauthclientCredentials:
secretName: iap-oauth
---
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
namespace: prod
name: dev-test-cert
spec:
domains:
- dev-test.golang.org
---
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
namespace: prod
name: build-cert
spec:
domains:
- build.golang.org
---
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
namespace: prod
name: dev-cert
spec:
domains:
- dev.golang.org
---
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
namespace: prod
name: gerritbot-cert
spec:
domains:
- gerritbot.golang.org
---
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
namespace: prod
name: maintner-cert
spec:
domains:
- maintner.golang.org