sftpgo
This commit is contained in:
parent
dabbb801d0
commit
8e9faf0a16
7
apps/sftpgo/base/ca.yaml
Normal file
7
apps/sftpgo/base/ca.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
sftpgo.json: '{}'
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: sftpgo
|
||||
namespace: sftpgo
|
76
apps/sftpgo/base/deployment.yaml
Normal file
76
apps/sftpgo/base/deployment.yaml
Normal file
@ -0,0 +1,76 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: sftpgo
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: sftpgo
|
||||
app.kubernetes.io/version: latest
|
||||
app: sftpgo
|
||||
name: sftpgo
|
||||
namespace: sftpgo
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/instance: sftpgo
|
||||
app.kubernetes.io/name: sftpgo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: sftpgo
|
||||
app.kubernetes.io/name: sftpgo
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
- sftpgo
|
||||
- serve
|
||||
env:
|
||||
- name: SFTPGO_SFTPD__BINDINGS__0__PORT
|
||||
value: "2022"
|
||||
- name: SFTPGO_SFTPD__BINDINGS__0__ADDRESS
|
||||
value: 0.0.0.0
|
||||
- name: SFTPGO_HTTPD__BINDINGS__0__PORT
|
||||
value: "8080"
|
||||
- name: SFTPGO_HTTPD__BINDINGS__0__ADDRESS
|
||||
value: 0.0.0.0
|
||||
- name: SFTPGO_TELEMETRY__BIND_PORT
|
||||
value: "10000"
|
||||
- name: SFTPGO_TELEMETRY__BIND_ADDRESS
|
||||
value: 0.0.0.0
|
||||
image: ghcr.io/drakkan/sftpgo:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: telemetry
|
||||
name: sftpgo
|
||||
ports:
|
||||
- containerPort: 2022
|
||||
name: sftp
|
||||
protocol: TCP
|
||||
- containerPort: 8080
|
||||
name: http
|
||||
protocol: TCP
|
||||
- containerPort: 10000
|
||||
name: telemetry
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: telemetry
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
volumeMounts:
|
||||
- mountPath: /etc/sftpgo/sftpgo.json
|
||||
name: config
|
||||
readOnly: true
|
||||
subPath: sftpgo.json
|
||||
hostNetwork: false
|
||||
securityContext: {}
|
||||
serviceAccountName: sftpgo
|
||||
volumes:
|
||||
- configMap:
|
||||
name: sftpgo
|
||||
name: config
|
15
apps/sftpgo/base/ingress.yaml
Normal file
15
apps/sftpgo/base/ingress.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: sftpgo
|
||||
namespace: sftpgo
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure-local
|
||||
tls: {}
|
||||
routes:
|
||||
- match: Host(`sftpgo.steffenillium.de`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: sftpgo
|
||||
port: http
|
8
apps/sftpgo/base/kustomization.yaml
Normal file
8
apps/sftpgo/base/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ca.yaml
|
||||
- deployment.yaml
|
||||
- sa.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
5
apps/sftpgo/base/sa.yaml
Normal file
5
apps/sftpgo/base/sa.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: sftpgo
|
||||
namespace: sftpgo
|
20
apps/sftpgo/base/service.yaml
Normal file
20
apps/sftpgo/base/service.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: sftpgo
|
||||
namespace: sftpgo
|
||||
spec:
|
||||
ports:
|
||||
- appProtocol: sftp-ssh
|
||||
name: sftp
|
||||
port: 22
|
||||
protocol: TCP
|
||||
targetPort: sftp
|
||||
- appProtocol: http
|
||||
name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/name: sftpgo
|
||||
type: ClusterIP
|
7
apps/sftpgo/kustomization.yaml
Normal file
7
apps/sftpgo/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: sftpgo
|
||||
|
||||
resources:
|
||||
- base
|
Loading…
x
Reference in New Issue
Block a user