Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
223 - Expose metallb lb outside the network (#241)
Browse files Browse the repository at this point in the history
* Adds kustomization to update ingress gateways and services for bare metal deployment

* admin and tenant ingress gateways are updated to accept incoming traffic from "*"
* services updated to have static "nodeport" values to facilitate routing via the
k3d loadbalancer

* Adds changes to successfully deploy service updates via zarf
  • Loading branch information
CollectiveUnicorn authored and andrewrisse committed Apr 18, 2024
1 parent 7305bc8 commit 7a2c343
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 0 deletions.
27 changes: 27 additions & 0 deletions kubernetes/networking/admin-gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: admin
namespace: istio-system
spec:
selector:
app: admin-ingressgateway
servers:
- hosts:
- '*'
port:
name: http
number: 8080
protocol: HTTP
tls:
httpsRedirect: true
- hosts:
- '*'
port:
name: https
number: 8443
protocol: HTTPS
tls:
credentialName: admin-cert
minProtocolVersion: TLSV1_3
mode: SIMPLE
27 changes: 27 additions & 0 deletions kubernetes/networking/admin-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v1
kind: Service
metadata:
name: admin-ingressgateway
namespace: istio-system
spec:
ports:
- name: status-port
nodePort: 30511
port: 15021
protocol: TCP
targetPort: 15021
- name: http2
nodePort: 32138
port: 80
protocol: TCP
targetPort: 8080
- name: https
nodePort: 30181
port: 443
protocol: TCP
targetPort: 8443
selector:
app: admin-ingressgateway
istio: ingressgateway
sessionAffinity: None
type: LoadBalancer
7 changes: 7 additions & 0 deletions kubernetes/networking/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- admin-gateway.yaml
- admin-service.yaml
- tenant-gateway.yaml
- tenant-service.yaml
27 changes: 27 additions & 0 deletions kubernetes/networking/tenant-gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: tenant
namespace: istio-system
spec:
selector:
app: tenant-ingressgateway
servers:
- hosts:
- '*'
port:
name: http
number: 8080
protocol: HTTP
tls:
httpsRedirect: true
- hosts:
- '*'
port:
name: https
number: 8443
protocol: HTTPS
tls:
credentialName: tenant-cert
minProtocolVersion: TLSV1_3
mode: SIMPLE
27 changes: 27 additions & 0 deletions kubernetes/networking/tenant-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v1
kind: Service
metadata:
name: tenant-ingressgateway
namespace: istio-system
spec:
ports:
- name: status-port
nodePort: 30248
port: 15021
protocol: TCP
targetPort: 15021
- name: http2
nodePort: 32386
port: 80
protocol: TCP
targetPort: 8080
- name: https
nodePort: 30535
port: 443
protocol: TCP
targetPort: 8443
selector:
app: tenant-ingressgateway
istio: ingressgateway
sessionAffinity: None
type: LoadBalancer

0 comments on commit 7a2c343

Please sign in to comment.