Skip to content

Instantly share code, notes, and snippets.

@maleck13
Last active January 30, 2023 11:52
Show Gist options
  • Save maleck13/83ed2c844da003ff12694485fa93f89e to your computer and use it in GitHub Desktop.
Save maleck13/83ed2c844da003ff12694485fa93f89e to your computer and use it in GitHub Desktop.
apiVersion: gateway.networking.k8s.io/v1beta1
kind: GatewayClass
metadata:
name: prod
spec:
controllerName: acme.io/gateway-controller
parametersRef:
name: Prod
group: kuadrant.io
kind: GatewayPolicy
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
name: prod-external
namespace: tenant-ns
labels:
placement: "env=prod" #used to decide which clusters to place this gateway on (may change in future)
spec:
gatewayClassName: prod
listeners:
- name: foo-https
protocol: HTTPS
port: 443
hostname: 1.a.b.com
allowedRoutes:
kinds:
- kind: HTTPRoute
namespaces:
from: Selector
selector:
matchLabels:
appType: "api"
tls:
certificateRefs:
- kind: Secret
group: ""
name: 1.a.b.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment