static_assets_copy_job.yaml 966 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
apiVersion: batch/v1
kind: Job
metadata:
  name: static-asset-copy
spec:
  backoffLimit: 2
  activeDeadlineSeconds: 100
  ttlSecondsAfterFinished: 5
  template:
    spec:
      imagePullSecrets:
        - name: ensemblweb-pull-secret
      containers:
      - name: static-asset-copy
        image: dockerhub.ebi.ac.uk/ensembl-web/deploy-tools:0.5
        tty: true
        command: ["/usr/bin/download_artifacts.sh"]
Kamal Dodiya's avatar
Kamal Dodiya committed
18
        args: [ "<PROJECT_ID>", "<JOB_ID>" ]
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
        ports:
          - containerPort: 8000
        imagePullPolicy: Always
        envFrom:
          - configMapRef:
              name: static-assets-copy-configmap
          - secretRef:
              name: artifact-download-token
        volumeMounts:
          - mountPath: "/usr/data"
            name: static-asset-storage
      restartPolicy: Never
      volumes:
        - name: static-asset-storage
          persistentVolumeClaim:
            claimName: ensembl-client-static-assets-pvc