Skip to content

Commit 9099b1d

Browse files
committed
Add Gateway API entries
1 parent 8a75bfd commit 9099b1d

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
---
22
zuul_operator_gateway_api_crd_url: "https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.3.0/standard-install.yaml"
3+
zuul_operator_gateway_api_gateways:
4+
- name: zuul-web-gateway
5+
spec:
6+
gatewayClassName: envoy
7+
listeners:
8+
- protocol: HTTPS
9+
port: 443
10+
tls:
11+
mode: Passthrough
12+
13+
zuul_operator_gateway_api_httproutes:
14+
- name: zuul-web-gateway-route
15+
spec:
16+
parentRefs:
17+
- name: zuul-web-gateway
18+
hostnames:
19+
- "zuul.stackhpc.com"
20+
rules:
21+
- backendRefs:
22+
- name: zuul-web
23+
port: 8080

ansible/run.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,30 @@
6363
state: present
6464
when: zuul_operator_gateway_api_crd_url | length > 0
6565

66+
- name: Ensure Gateway API Gateways
67+
kubernetes.core.k8s:
68+
definition:
69+
apiVersion: gateway.networking.k8s.io/v1
70+
kind: Gateway
71+
metadata:
72+
name: "{{ item.name }}"
73+
spec: "{{ item.spec }}"
74+
namespace: "zuul"
75+
state: present
76+
loop: "{{ zuul_operator_gateway_api_gateways }}"
77+
loop_control:
78+
label: "{{ item.name }}"
79+
80+
- name: Ensure Gateway API HTTPRoutes
81+
kubernetes.core.k8s:
82+
definition:
83+
apiVersion: gateway.networking.k8s.io/v1
84+
kind: HTTPRoute
85+
metadata:
86+
name: "{{ item.name }}"
87+
spec: "{{ item.spec }}"
88+
namespace: "zuul"
89+
state: present
90+
loop: "{{ zuul_operator_gateway_api_httproutes }}"
91+
loop_control:
92+
label: "{{ item.name }}"

0 commit comments

Comments
 (0)