-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put back gitlab ssh, update config location
- Loading branch information
1 parent
390729c
commit 240f87f
Showing
10 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
packages/additional-manifests/manifests/gitlab-ssh-gateway.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
42 changes: 42 additions & 0 deletions
42
packages/additional-manifests/manifests/gitlab-ssh-networkpolicies.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: ingress-istio-shell | ||
namespace: gitlab | ||
spec: | ||
ingress: | ||
- from: | ||
- namespaceSelector: | ||
matchLabels: | ||
app.kubernetes.io/name: istio-controlplane | ||
podSelector: | ||
matchLabels: | ||
app: tenant-ingressgateway | ||
istio: ingressgateway | ||
ports: | ||
- port: 2222 | ||
protocol: TCP | ||
podSelector: | ||
matchLabels: | ||
app: gitlab-shell | ||
policyTypes: | ||
- Ingress | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: egress-shell | ||
namespace: gitlab | ||
spec: | ||
egress: | ||
- to: | ||
- namespaceSelector: {} | ||
- ipBlock: | ||
cidr: 0.0.0.0/0 | ||
except: | ||
- 169.254.169.254/32 | ||
podSelector: | ||
matchLabels: | ||
app: gitlab-shell | ||
policyTypes: | ||
- Egress |
21 changes: 21 additions & 0 deletions
21
packages/additional-manifests/manifests/gitlab-ssh-virtualservice.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: networking.istio.io/v1beta1 | ||
kind: VirtualService | ||
metadata: | ||
annotations: | ||
meta.helm.sh/release-name: gitlab | ||
meta.helm.sh/release-namespace: gitlab | ||
name: gitlab-ssh | ||
namespace: gitlab | ||
spec: | ||
gateways: | ||
- istio-tenant-gateway/gitlab-ssh-gateway | ||
hosts: | ||
- gitlab.###ZARF_VAR_DOMAIN### | ||
tcp: | ||
- match: | ||
- port: 2022 | ||
route: | ||
- destination: | ||
host: gitlab-gitlab-shell.gitlab.svc.cluster.local | ||
port: | ||
number: 22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/zarf/v0.32.1/zarf.schema.json | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: additional-manifests | ||
description: "Installs additional needed manifests" | ||
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: gitlab-ssh | ||
required: true | ||
manifests: | ||
- name: gitlab-ssh-virtualservice | ||
namespace: gitlab | ||
files: | ||
- manifests/gitlab-ssh-virtualservice.yaml | ||
- manifests/gitlab-ssh-networkpolicies.yaml | ||
- manifests/gitlab-ssh-gateway.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters