Skip to content

Commit

Permalink
feat: exposes ssh port for gitlab (#30)
Browse files Browse the repository at this point in the history
* adding a separate gateway for gitlab ssh

* adding additional ingressgateway port for gitlab ssh
  • Loading branch information
blancharda authored Mar 5, 2024
1 parent bb50ca4 commit af3dd7b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
21 changes: 21 additions & 0 deletions bundles/uds-core-swf/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ packages:
description: "The TLS key for the admin gateway (must be base64 encoded)"
path: tls.key
istio-tenant-gateway:
gateway:
values:
- path: "service.ports"
value:
- name: status-port
port: 15021
protocol: TCP
targetPort: 15021
- name: http2
port: 80
protocol: TCP
targetPort: 80
- name: https
port: 443
protocol: TCP
targetPort: 443
- name: tcp-ssh
port: 22
protocol: TCP
targetPort: 2022
uds-istio-config:
variables:
- name: TENANT_TLS_CERT
Expand All @@ -55,6 +75,7 @@ packages:
- name: TENANT_TLS_KEY
description: "The TLS key for the tenant gateway (must be base64 encoded)"
path: tls.key


# legacy requirements of DUBBD like flux (TODO -- remove someday)
- name: dubbd-legacy-reqs
Expand Down
15 changes: 15 additions & 0 deletions packages/dubbd-legacy-reqs/manifests/gitlab-ssh-gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: gitlab-ssh-gateway
namespace: istio-tenant-gateway
spec:
selector:
app: tenant-ingressgateway
servers:
- hosts:
- gitlab.###ZARF_VAR_DOMAIN###
port:
name: tcp-ssh
number: 2022
protocol: TCP
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
namespace: gitlab
spec:
gateways:
- istio-system/tenant
- istio-tenant-gateway/gitlab-ssh-gateway
hosts:
- gitlab.mtsi.bigbang.dev
- gitlab.###ZARF_VAR_DOMAIN###
tcp:
- match:
- port: 2022
Expand Down
6 changes: 6 additions & 0 deletions packages/dubbd-legacy-reqs/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ metadata:
architecture: "amd64"
version: "0.0.1"

variables:
- name: DOMAIN
description: "Domain to be used in VS hosts and gateway config"
default: "mtsi.bigbang.dev"

components:
- name: install-flux
required: true
Expand All @@ -28,3 +33,4 @@ components:
files:
- manifests/gitlab-ssh-virtualservice.yaml
- manifests/gitlab-ssh-networkpolicies.yaml
- manifests/gitlab-ssh-gateway.yaml

0 comments on commit af3dd7b

Please sign in to comment.