parent
a94694ec94
commit
e746c6a02d
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- postsync.yaml
|
@ -0,0 +1,41 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: sync-postsync
|
||||||
|
namespace: csi-uat
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/hook: PostSync
|
||||||
|
spec:
|
||||||
|
backoffLimit: 3
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: postsync-pod
|
||||||
|
image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.2.0
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 3Gi
|
||||||
|
requests:
|
||||||
|
cpu: 250m
|
||||||
|
memory: 256Mi
|
||||||
|
env:
|
||||||
|
- name: MIGRATION_TYPE
|
||||||
|
value: "2"
|
||||||
|
- name: owner
|
||||||
|
value: "CSI-UAT"
|
||||||
|
- name: repo
|
||||||
|
value: "CSI_UAT"
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: service-configs
|
||||||
|
- secretRef:
|
||||||
|
name: service-configs-secret
|
||||||
|
- configMapRef:
|
||||||
|
name: init-database-configs
|
||||||
|
- secretRef:
|
||||||
|
name: init-database-secrets
|
||||||
|
restartPolicy: Never
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: regcred
|
@ -0,0 +1,41 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: sync-presync
|
||||||
|
namespace: csi-uat
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/hook: PreSync
|
||||||
|
spec:
|
||||||
|
backoffLimit: 3
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: presync-pod
|
||||||
|
image: registry.cloudsolutions.com.sa/vida-qa/csi-data-migration-initiator:4.2.0
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 3Gi
|
||||||
|
requests:
|
||||||
|
cpu: 250m
|
||||||
|
memory: 256Mi
|
||||||
|
env:
|
||||||
|
- name: MIGRATION_TYPE
|
||||||
|
value: "1"
|
||||||
|
- name: owner
|
||||||
|
value: "CSI-UAT"
|
||||||
|
- name: repo
|
||||||
|
value: "CSI_UAT"
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: service-configs
|
||||||
|
- secretRef:
|
||||||
|
name: service-configs-secret
|
||||||
|
- configMapRef:
|
||||||
|
name: init-database-configs
|
||||||
|
- secretRef:
|
||||||
|
name: init-database-secrets
|
||||||
|
restartPolicy: Never
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: regcred
|
Loading…
Reference in new issue