-
Notifications
You must be signed in to change notification settings - Fork 2
/
s3fs-kubernetes.yaml
68 lines (68 loc) · 1.43 KB
/
s3fs-kubernetes.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: s3fs-deployment
spec:
selector:
matchLabels:
k8s-app: s3fs-app
replicas: 1
template:
metadata:
labels:
k8s-app: s3fs-app
spec:
containers:
- name: s3fs-app
image: kubernetesio/s3fs
securityContext:
privileged: true
ports:
- containerPort: 22
env:
- name: SFTP_USER
valueFrom:
secretKeyRef:
name: s3fs-secret
key: sftp_user
- name: SFTP_PASSWORD
valueFrom:
secretKeyRef:
name: s3fs-secret
key: sftp_password
- name: AWS_ACCESSKEY
valueFrom:
secretKeyRef:
name: s3fs-secret
key: aws_accesskey
- name: AWS_SECRETKEY
valueFrom:
secretKeyRef:
name: s3fs-secret
key: aws_secretkey
- name: S3_BUCKET
valueFrom:
secretKeyRef:
name: s3fs-secret
key: s3_bucket
- name: S3_KEY
value: /
- name: SSH_KEY
valueFrom:
secretKeyRef:
name: s3fs-secret
key: ssh_key
---
apiVersion: v1
kind: Service
metadata:
name: s3fs-svc
spec:
ports:
- port: 22
targetPort: 22
nodePort: 30022
protocol: TCP
type: NodePort
selector:
k8s-app: s3fs-app