-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsftpplus-app-single-pod.yaml
97 lines (93 loc) · 2.31 KB
/
sftpplus-app-single-pod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# USAGE:
#
# After updating the content of this file, you can copy it to your
# kubernetes cluster control system and apply the changes using:
#
# kubectl apply -f sftpplus-app-single-pod.yaml
#
# NOTE: This example uses the Google Compute Engine disk storage that is
# manually created and directly attached to the pod, without using
# a colume claim
#
# WARNING: This will deploy the SFTPPlus application with public access
# available over the internet with the default username and password.
#
---
apiVersion: v1
kind: Service
metadata:
finalizers:
- service.kubernetes.io/load-balancer-cleanup
labels:
app: sftpplus-app
name: sftpplus-app-load-balancer
namespace: default
spec:
externalTrafficPolicy: Cluster
ports:
- name: 10020-to-10020-tcp
nodePort: 30500
port: 10020
protocol: TCP
targetPort: 10020
- name: 443-to-10443-tcp
nodePort: 32013
port: 443
protocol: TCP
targetPort: 10443
- name: 22-to-10022-tcp
nodePort: 32045
port: 22
protocol: TCP
targetPort: 10022
selector:
app: sftpplus-app
sessionAffinity: None
type: LoadBalancer
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: sftpplus-app
name: sftpplus-app
namespace: default
spec:
replicas: 1
serviceName: "sftpplus-app"
selector:
matchLabels:
app: sftpplus-app
template:
metadata:
labels:
app: sftpplus-app
spec:
terminationGracePeriodSeconds: 10
containers:
- image: proatria/sftpplus-trial:4.12.0-cloud
imagePullPolicy: Always
name: sftpplus-trial
env:
- name: SFTPPLUS_CONFIGURATION
value: /srv/storage/configuration
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /srv/storage
name: sftpplus-disk
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
# Depending on your Kubernetes service you might need to use
# a different persistence volume.
- gcePersistentDisk:
fsType: ext4
pdName: sftpplus-disk
name: sftpplus-disk