ingress and service

This commit is contained in:
2024-05-07 08:34:38 +02:00
parent d2e2a990d3
commit 947d21f5d2
2 changed files with 22 additions and 2 deletions

View File

@ -1,7 +1,7 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: sftpgo
name: sftpgo-http
namespace: sftpgo
spec:
entryPoints:
@ -13,3 +13,19 @@ spec:
services:
- name: sftpgo
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

View File

@ -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