You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
networking.gke.io/certmap: example-gateway-map # Optional, used for Google managed certificate, managed certificate and map can be created manually https://cloud.google.com/kubernetes-engine/docs/how-to/deploying-gateways#create_a_certificate_map
99
+
gatewayClass: gke-l7-global-external-managed # Default to GKE L7 Global External Managed Gateway you can change this to internal gateway class
100
+
listeners:
101
+
- name: https
102
+
protocol: HTTPS
103
+
port: 443
104
+
# Optional, if not specified it defaults to allowing routes in the same namespace. For more permissive settings, you can specify the namespaces or labels: https://cloud.google.com/kubernetes-engine/docs/how-to/deploying-gateways#create_a_certificate_map.
105
+
allowedRoutes:
106
+
namespaces:
107
+
from: Same # Allow routes in the same namespace by default
108
+
# Optional, if you want to specify a specific external reserved or internal address for the Gateway, if left empty, the gateway will use the default address for the cluster based on the gateway class.
109
+
addresses:
110
+
- type: NamedAddress
111
+
value: example-ip-address-name # Name of external IP address
112
+
# Optional, if you want to specify labels for the allowed routes, this is useful for more fine-grained control over which routes are allowed to be used with this gateway. in this case the routes specified in the rules.
113
+
# allowedRoutesLabels:
114
+
# app: example-app
115
+
# environment: production
116
+
hostnames:
117
+
- api.dev.example.com
118
+
- api.example.com
119
+
rules:
120
+
- matches:
121
+
- path:
122
+
type: PathPrefix
123
+
value: /v1
124
+
backendRefs:
125
+
- name: example-app-2
126
+
port: 3003
127
+
- matches:
128
+
- path:
129
+
type: PathPrefix
130
+
value: /v2
131
+
backendRefs:
132
+
- name: example-app-2-web-headless
133
+
port: 3003
134
+
135
+
93
136
apps:
94
137
# you can specify init containers and containers for each deployment for a fine tuning (example-app-1), or use a simplified version in case you only need one container (example-app-2)
95
138
# you can specify parameters on multiple levels:
@@ -333,6 +376,11 @@ apps:
333
376
capabilities:
334
377
drop:
335
378
- ALL
379
+
# GCP settings for the Gateway IAP backend policy
380
+
gatewayBackendPolicy:
381
+
- serviceName: example-app-2 # Name of the service to which the backend policy applies
382
+
clientSecretName: example-app-2 # Name of the Kubernetes secret containing the OAuth2 client secret. SecretKey must be 'key'
0 commit comments