######### #Since Kubernetes jobs are immitable (you cannot update it with a new image). # To update these jobs, CI deletes the old jobs and recreates them using this file. ######### ######### #UPDATE: Any update to this file should also be accompanied with ../production.yaml ######### ########-INIT-SCRIPT-########## apiVersion: batch/v1 kind: Job metadata: name: init-script spec: template: spec: containers: - name: init-script image: fyipeproject/init-script:latest imagePullPolicy: Always env: - name: MONGO_URL value: 'mongodb://admin:372b60f4-704c-4205-8e5c-45cdbf44b1fc@mongo-0.mongo.default.svc.cluster.local:27017,mongo-1.mongo.default.svc.cluster.local:27017,mongo-2.mongo.default.svc.cluster.local:27017/fyipedb?replicaSet=rs0' restartPolicy: Never --- ###########################