forked from mikeghen/kubernetes-gcs-sftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsftp.yaml
56 lines (56 loc) · 1.12 KB
/
sftp.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
kind: Service
apiVersion: v1
metadata:
name: sftp
labels:
environment: production
spec:
type: NodePort
ports:
- name: ssh
port: 22
targetPort: 22
nodePort: 30022
selector:
app: sftp
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sftp-deployment
spec:
replicas: 1
template:
metadata:
labels:
app: sftp
spec:
volumes:
- name: users
secret:
secretName: users
- name: sftp-gcloud-key
secret:
secretName: sftp-gcloud-key
- name: gcs-mounts
configMap:
name: gcs-mounts
defaultMode: 0744
containers:
- name: sftp
image: mikeghen/kube-sftp
imagePullPolicy: Never
ports:
- containerPort: 22
volumeMounts:
- mountPath: /etc/sftp
name: users
- mountPath: /credentials
name: sftp-gcloud-key
- mountPath: /etc/sftp.d/
name: gcs-mounts
securityContext:
privileged: true
capabilities:
add:
- SYS_ADMIN