-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path200-ftp.yaml
46 lines (46 loc) · 872 Bytes
/
200-ftp.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
apiVersion: v1
kind: Service
metadata:
name: my-ftp-service
labels:
app: my-ftp
spec:
type: LoadBalancer
ports:
- port: 22
selector:
app: my-ftp
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: my-ftp
name: my-ftp
spec:
replicas: 1
selector:
matchLabels:
app: my-ftp
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
app: my-ftp
spec:
volumes:
- name: dummy-storage
emptyDir: {}
containers:
- name: my-ftp
args: ["FTP_USER:FTP_PASS:1001:100:incoming,outgoing"]
image: atmoz/sftp
ports:
- containerPort: 22
protocol: TCP
name: ftp-server
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: "/home/foo/upload"
name: dummy-storage