Commit a47d290a authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

k8s manifest for copying static assets to PVC

parent 06108000
Pipeline #174881 failed with stage
in 6 seconds
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"]
args: [ <PROJECT_ID>, <JOB_ID> ] # 498390, 497091
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
apiVersion: v1
data:
HTTP_PROXY: http://hx-wwwcache.ebi.ac.uk:3128
HTTPS_PROXY: http://hx-wwwcache.ebi.ac.uk:3128
http_proxy: http://hx-wwwcache.ebi.ac.uk:3128
https_proxy: http://hx-wwwcache.ebi.ac.uk:3128
kind: ConfigMap
metadata:
name: static-assets-copy-configmap
apiVersion: v1
kind: Secret
metadata:
name: artifact-download-token
data:
token: <TOKEN_TO_DOWNLOAD_ARTIFACT>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment