23 lines
498 B
YAML
23 lines
498 B
YAML
# kubernetes/gateway/gateway.yaml
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: GatewayClass
|
|
metadata:
|
|
name: nginx
|
|
spec:
|
|
controllerName: gateway.nginx.org/nginx-gateway-controller
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: Gateway
|
|
metadata:
|
|
name: todo-gateway
|
|
namespace: todo-app
|
|
spec:
|
|
gatewayClassName: nginx
|
|
listeners:
|
|
- name: http
|
|
port: 80
|
|
protocol: HTTP
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: Same # only routes from todo-app namespace
|