Route Naviya through Cilium ingress network

This commit is contained in:
2026-09-03 21:20:22 +02:00
parent 3dedd8f6d3
commit 07c126540e
3 changed files with 6 additions and 62 deletions
+6 -54
View File
@@ -1,23 +1,3 @@
apiVersion: cilium.io/v2alpha1
kind: CiliumL2AnnouncementPolicy
metadata:
name: application-metier-gateway
spec:
serviceSelector:
matchExpressions:
- key: io.kubernetes.service.namespace
operator: In
values: ["application-metier"]
- key: io.kubernetes.service.name
operator: In
values: ["cilium-gateway-application-metier"]
nodeSelector:
matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: DoesNotExist
loadBalancerIPs: true
externalIPs: false
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
@@ -25,10 +5,12 @@ metadata:
namespace: application-metier
spec:
gatewayClassName: cilium
addresses:
- type: IPAddress
value: 172.16.40.100
infrastructure:
annotations:
metallb.io/address-pool: bgp-pool
metallb.io/loadBalancerIPs: "172.16.10.201"
labels:
naviya.io/ingress-lb: "true"
listeners:
- name: http
protocol: HTTP
@@ -37,36 +19,6 @@ spec:
allowedRoutes:
namespaces:
from: Same
- name: https
protocol: HTTPS
port: 443
hostname: naviya.guillin.ovh
tls:
mode: Terminate
certificateRefs:
- kind: Secret
name: application-metier-tls
allowedRoutes:
namespaces:
from: Same
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: application-metier-http-redirect
namespace: application-metier
spec:
parentRefs:
- name: application-metier
sectionName: http
hostnames:
- naviya.guillin.ovh
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
@@ -76,7 +28,7 @@ metadata:
spec:
parentRefs:
- name: application-metier
sectionName: https
sectionName: http
hostnames:
- naviya.guillin.ovh
rules:
-1
View File
@@ -19,4 +19,3 @@ patches:
- path: patch-frontend.yaml
- path: patch-gateway.yaml
- path: patch-route.yaml
- path: patch-route-redirect.yaml
-7
View File
@@ -1,7 +0,0 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: application-metier-http-redirect
namespace: application-metier
annotations:
argocd.argoproj.io/sync-wave: "3"