-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes-job.yaml
34 lines (33 loc) · 1.17 KB
/
kubernetes-job.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
apiVersion: batch/v1
kind: Job
metadata:
name: uugai-cli-vault-to-hub-migration
spec:
template:
spec:
containers:
- name: init-container
image: uugai/cli:latest
command: ['/main', '-action', 'vault-to-hub-migration',
'-mongodb-uri', 'mongodb+srv://<username>:<password>@<host>/<database>?retryWrites=true&w=majority&appName=<appName>',
#'-mongodb-host', '<host>',
#'-mongodb-port', '27017',
#'-mongodb-username', '<username>',
#'-mongodb-password', '<password>',
'-mongodb-source-database', 'KerberosStorage',
'-mongodb-destination-database', 'Kerberos',
'-mongodb-database-credentials', 'admin',
'-username', '<username>',
'-queue', '<rabbitmq-integration>',
'-start-timestamp', '1733425260',
'-end-timestamp', '1753952373',
'-timezone', 'UTC',
'-pipeline', 'monitor,sequence,analysis',
'-mode', 'dry-run', # or live to execute for real.
'-batch-size', '100',
'-batch-delay', '1000',
]
restartPolicy: Never
volumes:
- name: hub-import
emptyDir: {}