-
Notifications
You must be signed in to change notification settings - Fork 57
/
sftp-deployment.yaml
62 lines (61 loc) · 1.9 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
kind: Deployment
apiVersion: apps/v1
metadata:
name: neutron-sftp-backup
labels:
release: "{{.Release.Name}}"
{{- if .Values.vpa.set_main_container }}
annotations:
vpa-butler.cloud.sap/main-container: sftp
{{- end }}
spec:
revisionHistoryLimit: 5
replicas: 1
strategy:
type: RollingUpdate
selector:
matchLabels:
component: neutron-sftp-backup
template:
metadata:
labels:
component: neutron-sftp-backup
annotations:
configmap-etc-hash: {{ include (print $.Template.BasePath "/sftp-secrets.yaml") . | sha256sum }}
{{- include "utils.linkerd.pod_and_service_annotation" . | indent 8 }}
spec:
containers:
- name: sftp
image: {{.Values.global.registry}}/swift-sftp:20210323140857
args: ['server', '-f', '/etc/swift-sftp.conf']
env:
- name: PASSWORD
valueFrom:
secretKeyRef:
name: neutron-sftp-backup
key: password
{{- include "utils.trust_bundle.env" . | indent 12 }}
resources:
{{ toYaml .Values.pod.resources.sftp_backup | indent 12 }}
volumeMounts:
- mountPath: /etc/swift-sftp.conf
name: neutron-sftp-backup
subPath: swift-sftp.conf
readOnly: true
- mountPath: /etc/ssh_host_id_ec
name: neutron-sftp-backup
subPath: ssh_host_id_ec
readOnly: true
- mountPath: /etc/sftp_passwd
name: neutron-sftp-backup
subPath: sftp_passwd
readOnly: true
- mountPath: /tmp
name: cache-volume
{{- include "utils.trust_bundle.volume_mount" . | indent 12 }}
volumes:
- name: neutron-sftp-backup
secret:
secretName: neutron-sftp-backup
- name: cache-volume
emptyDir: {}