From 947d21f5d247c91d80963bd50170449904915317 Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Tue, 7 May 2024 08:34:38 +0200 Subject: [PATCH] ingress and service --- apps/sftpgo/base/ingress.yaml | 20 +++++++++++++++++-- .../03-traefik/base/deployment.yaml | 4 ++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/sftpgo/base/ingress.yaml b/apps/sftpgo/base/ingress.yaml index 3d50073..ad4f926 100644 --- a/apps/sftpgo/base/ingress.yaml +++ b/apps/sftpgo/base/ingress.yaml @@ -1,7 +1,7 @@ apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: - name: sftpgo + name: sftpgo-http namespace: sftpgo spec: entryPoints: @@ -12,4 +12,20 @@ spec: kind: Rule services: - name: sftpgo - port: http \ No newline at end of file + port: http +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: sftpgo-ssh + namespace: sftpgo +spec: + entryPoints: + - ssh + tls: {} + routes: + - match: Host(`sftp.steffenillium.de`) + kind: Rule + services: + - name: sftpgo + port: ssh \ No newline at end of file diff --git a/infrastructure/03-traefik/base/deployment.yaml b/infrastructure/03-traefik/base/deployment.yaml index b9ab39f..9f574f4 100644 --- a/infrastructure/03-traefik/base/deployment.yaml +++ b/infrastructure/03-traefik/base/deployment.yaml @@ -32,6 +32,7 @@ spec: - --entrypoints.metrics.address=:9100/tcp - --entrypoints.traefik.address=:9000/tcp - --entrypoints.dns.address=:53/udp + - --entrypoints.dns.address=:22/tcp - --entrypoints.web-local.address=:80/tcp - --entrypoints.web-local.http.redirections.entrypoint.to=websecure-local @@ -97,6 +98,9 @@ spec: successThreshold: 1 timeoutSeconds: 2 ports: + - containerPort: 22 + name: ssh + protocol: TCP - containerPort: 53 name: dns protocol: UDP