Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy_control_plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
tags: always
- name: ingress-controller
tags: ingress-controller
- name: gateway-api-controller
tags: gateway-api-controller
- name: metal-roles/control-plane/roles/prepare
tags: prepare
- name: metal-roles/control-plane/roles/nsq
Expand Down
9 changes: 9 additions & 0 deletions roles/gateway-api-controller/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
gateway_api_http_port: 8080
gateway_api_https_port: 4443

gateway_api_additional_config: {}
gateway_api_tcp_service_exposals: {}
gateway_api_udp_service_exposals: {}

gateway_api_controller_chart_version: 39.0.7
16 changes: 16 additions & 0 deletions roles/gateway-api-controller/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- name: Add traefik repo
kubernetes.core.helm_repository:
name: traefik
repo_url: https://traefik.github.io/charts
force_update: true

- name: Deploy traefik gateway-api controller
kubernetes.core.helm:
chart_version: "{{ gateway_api_controller_chart_version | default(omit) }}"
chart_ref: traefik/traefik
name: traefik
release_namespace: gateway-api-traefik
create_namespace: true
values: "{{ lookup('template', 'values.yaml') | from_yaml }}"
wait: true
19 changes: 19 additions & 0 deletions roles/gateway-api-controller/templates/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
providers:
kubernetesGateway:
enabled: true
experimentalChannel: true # NOTE: this is needed to enable TCPRoute CRDs

hostNetwork: true
# because of host network, which binds the host port during rolling upgrade
updateStrategy:
type: Recreate

service:
enabled: true

type: ClusterIP

ports:
http: {{ gateway_api_http_port }}
https: {{ gateway_api_https_port }}
Loading