Commit 46ce5401 authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

Add static asset k8s manifest

parent acf39143
Pipeline #175454 failed with stage
in 8 seconds
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ensembl-dev
resources:
- static_assets_copy_job.yaml
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>" ]
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