Route Naviya through Cilium ingress network
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user