commit 16a52d2dff5e53dddad4ff188c5d9bf57591f987
parent 0c3acd3c960079d8782181237673c54525a6149e
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 20 Dec 2024 11:54:33 +0100
Deploy gerrit
Diffstat:
2 files changed, 48 insertions(+), 28 deletions(-)
diff --git a/apps/base/gerrit/ingress.yaml b/apps/base/gerrit/ingress.yaml
@@ -28,24 +28,24 @@ spec:
rules:
- host: gerrit.midnightthoughts.space
http:
- paths:
- - backend:
- service:
- name: gerrit-replica-service
- port:
- name: http
- path: /.*/git-upload-pack
- pathType: ImplementationSpecific
- - backend:
- service:
- name: gerrit-service
- port:
- name: http
- path: /
- pathType: Prefix
+ paths:
+ - backend:
+ service:
+ name: gerrit-replica-service
+ port:
+ name: http
+ path: /.*/git-upload-pack
+ pathType: ImplementationSpecific
+ - backend:
+ service:
+ name: gerrit-service
+ port:
+ name: http
+ path: /
+ pathType: Prefix
tls:
- hosts:
- - gerrit.midnightthoughts.space
+ - gerrit.midnightthoughts.space
secretName: gerrit.midnightthoughts.space-tls
---
apiVersion: networking.k8s.io/v1
@@ -64,15 +64,29 @@ spec:
rules:
- host: gerrit.midnightthoughts.space
http:
- paths:
- - backend:
- service:
- name: gerrit-replica-service
- port:
- name: http
- path: /(a)?/plugins/high-availability/.*
- pathType: ImplementationSpecific
+ paths:
+ - backend:
+ service:
+ name: gerrit-replica-service
+ port:
+ name: http
+ path: /(a)?/plugins/high-availability/.*
+ pathType: ImplementationSpecific
tls:
- hosts:
- - gerrit.midnightthoughts.space
+ - gerrit.midnightthoughts.space
secretName: gerrit.midnightthoughts.space-tls
+---
+apiVersion: traefik.io/v1alpha1
+kind: IngressRouteTCP
+metadata:
+ name: gerrit-ssh
+ namespace: gerrit
+spec:
+ entryPoints:
+ - gerrit_ssh
+ routes:
+ - match: HostSNI(`*`)
+ services:
+ - name: gerrit-service
+ port: 29418
diff --git a/apps/base/traefik/release.yaml b/apps/base/traefik/release.yaml
@@ -64,7 +64,7 @@ spec:
spec:
externalTrafficPolicy: Local
deployment:
- replicas: 4
+ replicas: 3
tlsOptions:
default:
minVersion: VersionTLS13
@@ -84,6 +84,12 @@ spec:
default: true
exposedPort: 80
protocol: TCP
+ gerrit_ssh:
+ port: 29418
+ expose:
+ default: true
+ exposedPort: 29418
+ protocol: TCP
# minecraft:
# port: 25566
# expose:
@@ -123,8 +129,8 @@ spec:
instanceLabelOverride: traefik
topologySpreadConstraints:
- labelSelector:
- matchLabels:
- app.kubernetes.io/name: '{{ template "traefik.name" . }}'
+ matchLabels:
+ app.kubernetes.io/name: '{{ template "traefik.name" . }}'
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway