clean up and add routes to paas site
This commit is contained in:
parent
7739f2e604
commit
9f5d1fb723
36 changed files with 222 additions and 10 deletions
26
infrastructure/gatewayapi/apigateway.yaml
Normal file
26
infrastructure/gatewayapi/apigateway.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: external-http-gateway
|
||||
namespace: customer1
|
||||
spec:
|
||||
gatewayClassName: gke-l7-global-external-managed # Use gke-l7-global-external-http for external, or gke-l7-rilb for internal
|
||||
listeners:
|
||||
- name: n8n-https
|
||||
protocol: HTTPS
|
||||
port: 443
|
||||
tls:
|
||||
mode: Terminate
|
||||
options:
|
||||
networking.gke.io/pre-shared-certs: n8n-sirius-sec-com
|
||||
- name: siriusdevops-https
|
||||
hostname: siriusdevops.com
|
||||
protocol: HTTPS
|
||||
port: 443
|
||||
tls:
|
||||
mode: Terminate
|
||||
options:
|
||||
networking.gke.io/pre-shared-certs: siriusdevops-cert
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: "All"
|
||||
18
infrastructure/gatewayapi/gateway-routes/route.yaml
Normal file
18
infrastructure/gatewayapi/gateway-routes/route.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: paas-landing
|
||||
namespace: customer1
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: external-http-gateway
|
||||
kind: Gateway
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /paas
|
||||
backendRefs:
|
||||
- name: paas-landing-svc
|
||||
port: 80
|
||||
|
||||
6
infrastructure/gatewayapi/kustomization.yaml
Normal file
6
infrastructure/gatewayapi/kustomization.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- apigateway.yaml
|
||||
- gateway-routes/
|
||||
|
||||
Loading…
Reference in a new issue