-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmigrate.yaml
36 lines (36 loc) · 994 Bytes
/
migrate.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
apiVersion: batch/v1
kind: Job
metadata:
name: netbox-migration
spec:
ttlSecondsAfterFinished: 3600
template:
spec:
containers:
- name: netbox-migration-runner
image: image-registry.openshift-image-registry.svc:5000/netbox/netbox-app:latest
command: ["bash", "-ex", "migrate.sh"]
env:
- name: NETBOX_REDIS_PASS
valueFrom:
secretKeyRef:
name: redis
key: database-password
# - name: NETBOX_DELETE_LEGACY_DATA
# value: "1"
imagePullPolicy: Always
envFrom:
- configMapRef:
name: netbox-secrets
- secretRef:
name: netbox-secret-key
- secretRef:
name: netbox-aws
- secretRef:
name: netbox-db-pass
- secretRef:
name: netbox-mail
- secretRef:
name: netbox-oidc
restartPolicy: Never
backoffLimit: 2