Skip to content

Commit c931f13

Browse files
feat(gateway): update sample showing a Gateway with common config and a Gateway with a custom one
1 parent 5be1a5b commit c931f13

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

config/samples/gateway-hybrid-with-gatewayconfiguration-and-per-gateway-infrastructure_v2.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# https://gateway-api.sigs.k8s.io/geps/gep-1867/
33
# This sample demonstrates how to configure a hybrid Kong Gateway with
44
# per-Gateway infrastructure using GatewayConfiguration resources.
5-
# The GatewayConfiguration resource named "hybrid-kong" defines
5+
# The GatewayConfiguration resource named "common-infra-configuration-kong" defines
66
# the control plane connection details for the data plane.
7-
# The GatewayConfiguration resource named "gateway-infrastructure-kong"
8-
# defines the infrastructure details for the Gateway
7+
# The GatewayConfiguration resource named "custom-infra-configuration-kong"
8+
# defines the infrastructure details for the Gateway with custom settings by
99
# setting the source to "Mirror" and specifying the Konnect Control Plane ID.
1010
---
1111
kind: KonnectAPIAuthConfiguration
@@ -21,7 +21,7 @@ spec:
2121
kind: GatewayConfiguration
2222
apiVersion: gateway-operator.konghq.com/v2beta1
2323
metadata:
24-
name: hybrid-kong
24+
name: common-infra-configuration-kong
2525
namespace: default
2626
spec:
2727
konnect:
@@ -48,13 +48,25 @@ spec:
4848
parametersRef:
4949
group: gateway-operator.konghq.com
5050
kind: GatewayConfiguration
51-
name: hybrid-kong
51+
name: common-infra-configuration-kong
5252
namespace: default
5353
---
54+
kind: Gateway
55+
apiVersion: gateway.networking.k8s.io/v1
56+
metadata:
57+
name: common-hybrid-kong
58+
namespace: default
59+
spec:
60+
gatewayClassName: hybrid-kong
61+
listeners:
62+
- name: http
63+
protocol: HTTP
64+
port: 80
65+
---
5466
kind: GatewayConfiguration
5567
apiVersion: gateway-operator.konghq.com/v2beta1
5668
metadata:
57-
name: gateway-infrastructure-kong
69+
name: custom-infra-configuration-kong
5870
namespace: default
5971
spec:
6072
konnect:
@@ -66,15 +78,15 @@ spec:
6678
kind: Gateway
6779
apiVersion: gateway.networking.k8s.io/v1
6880
metadata:
69-
name: hybrid-kong
81+
name: custom-hybrid-kong
7082
namespace: default
7183
spec:
7284
gatewayClassName: hybrid-kong
7385
infrastructure:
7486
parametersRef:
7587
group: gateway-operator.konghq.com
7688
kind: GatewayConfiguration
77-
name: gateway-infrastructure-kong
89+
name: custom-infra-configuration-kong
7890
listeners:
7991
- name: http
8092
protocol: HTTP

0 commit comments

Comments
 (0)