-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsftp-deployment.yaml
45 lines (45 loc) · 984 Bytes
/
sftp-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: sftp
labels:
app: sftp
spec:
replicas: 1
selector:
matchLabels:
app: sftp
strategy:
type: Recreate
template:
metadata:
labels:
app: sftp
spec:
initContainers:
- name: volume-permissions
image: busybox
command: ["sh", "-c", "chmod 755 /home"]
volumeMounts:
- mountPath: /home
name: sftp
containers:
- image: YOUR_REGISTRY/sftp:0.0.1
imagePullPolicy: "Always"
name: sftp
ports:
- containerPort: 22
resources:
limits:
memory: "8Gi"
cpu: "8"
securityContext:
privileged: true
volumeMounts:
- mountPath: /home
name: sftp
restartPolicy: Always
volumes:
- name: sftp
persistentVolumeClaim:
claimName: sftp-pvc