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
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
@@ -25,10 +5,12 @@ metadata:
|
|||||||
namespace: application-metier
|
namespace: application-metier
|
||||||
spec:
|
spec:
|
||||||
gatewayClassName: cilium
|
gatewayClassName: cilium
|
||||||
|
addresses:
|
||||||
|
- type: IPAddress
|
||||||
|
value: 172.16.40.100
|
||||||
infrastructure:
|
infrastructure:
|
||||||
annotations:
|
labels:
|
||||||
metallb.io/address-pool: bgp-pool
|
naviya.io/ingress-lb: "true"
|
||||||
metallb.io/loadBalancerIPs: "172.16.10.201"
|
|
||||||
listeners:
|
listeners:
|
||||||
- name: http
|
- name: http
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
@@ -37,36 +19,6 @@ spec:
|
|||||||
allowedRoutes:
|
allowedRoutes:
|
||||||
namespaces:
|
namespaces:
|
||||||
from: Same
|
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
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: HTTPRoute
|
kind: HTTPRoute
|
||||||
@@ -76,7 +28,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
parentRefs:
|
parentRefs:
|
||||||
- name: application-metier
|
- name: application-metier
|
||||||
sectionName: https
|
sectionName: http
|
||||||
hostnames:
|
hostnames:
|
||||||
- naviya.guillin.ovh
|
- naviya.guillin.ovh
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -19,4 +19,3 @@ patches:
|
|||||||
- path: patch-frontend.yaml
|
- path: patch-frontend.yaml
|
||||||
- path: patch-gateway.yaml
|
- path: patch-gateway.yaml
|
||||||
- path: patch-route.yaml
|
- path: patch-route.yaml
|
||||||
- path: patch-route-redirect.yaml
|
|
||||||
|
|||||||
@@ -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"
|
|
||||||
Reference in New Issue
Block a user