Add Wings HTTPS proxy via Envoy Gateway
This commit is contained in:
@@ -42,6 +42,7 @@ resources:
|
||||
- searxng/certificate.yaml
|
||||
- affine/certificate.yaml
|
||||
- pelican/certificate.yaml
|
||||
- pelican/wings-certificate.yaml
|
||||
|
||||
patches:
|
||||
# Internal gateway patches
|
||||
@@ -261,6 +262,12 @@ patches:
|
||||
kind: Gateway
|
||||
name: gateway-internal
|
||||
path: pelican/gateway-patch.yaml
|
||||
- target:
|
||||
group: gateway.networking.k8s.io
|
||||
version: v1
|
||||
kind: Gateway
|
||||
name: gateway-internal
|
||||
path: pelican/wings-gateway-patch.yaml
|
||||
|
||||
# Public gateway patches
|
||||
- target:
|
||||
|
||||
14
envoy-gateway/pelican/wings-certificate.yaml
Normal file
14
envoy-gateway/pelican/wings-certificate.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: wings-tls
|
||||
namespace: envoy-gateway
|
||||
spec:
|
||||
secretName: wings-tls
|
||||
privateKey:
|
||||
rotationPolicy: Always
|
||||
issuerRef:
|
||||
name: azure-dns
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- wings.jsme.be
|
||||
19
envoy-gateway/pelican/wings-gateway-patch.yaml
Normal file
19
envoy-gateway/pelican/wings-gateway-patch.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
- op: add
|
||||
path: /spec/listeners/-
|
||||
value:
|
||||
name: wings
|
||||
protocol: HTTPS
|
||||
port: 443
|
||||
hostname: "wings.jsme.be"
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: Selector
|
||||
selector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: pelican
|
||||
tls:
|
||||
mode: Terminate
|
||||
certificateRefs:
|
||||
- kind: Secret
|
||||
name: wings-tls
|
||||
namespace: envoy-gateway
|
||||
18
pelican/wings-endpointslice.yaml
Normal file
18
pelican/wings-endpointslice.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: discovery.k8s.io/v1
|
||||
kind: EndpointSlice
|
||||
metadata:
|
||||
name: wings
|
||||
namespace: pelican
|
||||
labels:
|
||||
kubernetes.io/service-name: wings
|
||||
addressType: IPv4
|
||||
ports:
|
||||
- port: 8080
|
||||
protocol: TCP
|
||||
endpoints:
|
||||
- addresses:
|
||||
- "10.8.11.50"
|
||||
conditions:
|
||||
ready: true
|
||||
serving: true
|
||||
terminating: false
|
||||
25
pelican/wings-httproute.yaml
Normal file
25
pelican/wings-httproute.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: wings-route
|
||||
namespace: pelican
|
||||
spec:
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: gateway-internal
|
||||
namespace: envoy-gateway
|
||||
sectionName: wings
|
||||
hostnames:
|
||||
- "wings.jsme.be"
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: wings
|
||||
port: 8080
|
||||
kind: Service
|
||||
group: ""
|
||||
weight: 1
|
||||
11
pelican/wings-svc.yaml
Normal file
11
pelican/wings-svc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wings
|
||||
namespace: pelican
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user