diff --git a/kube/services/fence/fence-deploy.yaml b/kube/services/fence/fence-deploy.yaml index 8395e6965..57f1bb77e 100644 --- a/kube/services/fence/fence-deploy.yaml +++ b/kube/services/fence/fence-deploy.yaml @@ -195,8 +195,8 @@ spec: # DEPRECATED! Remove when all commons are no longer using local_settings.py # for fence. # ----------------------------------------------------------------------------- - - mountPath: /var/www/fence - name: "fence" + - name: "fence" + mountPath: "/var/www/fence" - name: "old-config-volume" readOnly: true mountPath: "/var/www/fence/local_settings.py" @@ -271,13 +271,7 @@ spec: - | echo "${FENCE_PUBLIC_CONFIG:-""}" > "/var/www/fence/fence-config-public.yaml" python /var/www/fence/yaml_merge.py /var/www/fence/fence-config-public.yaml /var/www/fence/fence-config-secret.yaml > /var/www/fence/fence-config.yaml - cd /fence - tar xvf jwt-keys.tar - mkdir -p keys - mv jwt-keys/* keys/ - rm -rf /fence/keys/key/ - gunicorn -c deployment/wsgi/gunicorn.conf.py - #bash /fence/dockerrun.bash && if [[ -f /dockerrun.sh ]]; then bash /dockerrun.sh; fi + bash /fence/dockerrun.bash && if [[ -f /dockerrun.sh ]]; then bash /dockerrun.sh; fi - name: sidecar-nginx image: quay.io/cdis/nginx-sidecar:nginx-sidecar-feat_nginx-sidecar imagePullPolicy: IfNotPresent diff --git a/kube/services/fence/fence-gunicorn.yaml b/kube/services/fence/fence-gunicorn.yaml index 53cef593b..a71e2b7ad 100644 --- a/kube/services/fence/fence-gunicorn.yaml +++ b/kube/services/fence/fence-gunicorn.yaml @@ -6,10 +6,8 @@ data: gunicorn.conf.py: | wsgi_app = "deployment.wsgi.wsgi:application" bind = "0.0.0.0:8000" - workers = 4 + workers = 3 preload_app = True user = 'gen3' group = 'gen3' timeout = 300 - keepalive = 2 - keepalive_timeout = 5 diff --git a/kube/services/peregrine/peregrine-deploy.yaml b/kube/services/peregrine/peregrine-deploy.yaml index 33d9fe2cc..03533034c 100644 --- a/kube/services/peregrine/peregrine-deploy.yaml +++ b/kube/services/peregrine/peregrine-deploy.yaml @@ -90,6 +90,8 @@ spec: - name: nginx-main-config configMap: name: sidecar-nginx-main + - name: peregrine + emptyDir: {} containers: - name: peregrine GEN3_PEREGRINE_IMAGE @@ -196,6 +198,8 @@ spec: - name: "wsgi-config" mountPath: "/peregrine/deployment/wsgi/gunicorn.conf.py" subPath: gunicorn.conf.py + - name: "peregrine" + mountPat: "/var/www/peregrine" imagePullPolicy: Always resources: requests: @@ -231,4 +235,4 @@ spec: subPath: "nginx.conf" - name: "nginx-config" mountPath: "/etc/nginx/conf.d/default.conf" - subPath: default.conf \ No newline at end of file + subPath: default.conf diff --git a/kube/services/peregrine/peregrine-gunicorn.yaml b/kube/services/peregrine/peregrine-gunicorn.yaml index ce563b636..0b22da0b9 100644 --- a/kube/services/peregrine/peregrine-gunicorn.yaml +++ b/kube/services/peregrine/peregrine-gunicorn.yaml @@ -10,4 +10,3 @@ data: user = 'gen3' group = 'gen3' timeout = 300 - worker_class = "uvicorn.workers.UvicornWorker" \ No newline at end of file diff --git a/kube/services/presigned-url-fence/presigned-url-fence-deploy.yaml b/kube/services/presigned-url-fence/presigned-url-fence-deploy.yaml index 45e6daaea..9b79c7595 100644 --- a/kube/services/presigned-url-fence/presigned-url-fence-deploy.yaml +++ b/kube/services/presigned-url-fence/presigned-url-fence-deploy.yaml @@ -106,6 +106,8 @@ spec: - name: privacy-policy configMap: name: "privacy-policy" + - name: fence + emptyDir: {} securityContext: # nginx group in current images fsGroup: 101 @@ -175,6 +177,8 @@ spec: # DEPRECATED! Remove when all commons are no longer using local_settings.py # for fence. # ----------------------------------------------------------------------------- + - name: "fence" + mountPath: "/var/www/fence" - name: "old-config-volume" readOnly: true mountPath: "/var/www/fence/local_settings.py" diff --git a/kube/services/sheepdog/sheepdog-deploy.yaml b/kube/services/sheepdog/sheepdog-deploy.yaml index 3907d0902..f81ed8ea3 100644 --- a/kube/services/sheepdog/sheepdog-deploy.yaml +++ b/kube/services/sheepdog/sheepdog-deploy.yaml @@ -86,6 +86,8 @@ spec: - name: nginx-main-config configMap: name: sidecar-nginx-main + - name: sheepdog + emptyDir: {} # sheepdog transactions take forever - # try to let the complete before termination terminationGracePeriodSeconds: 50 @@ -211,6 +213,8 @@ spec: - name: "wsgi-config" mountPath: "/sheepdog/deployment/wsgi/gunicorn.conf.py" subPath: gunicorn.conf.py + - name: "sheepdog" + mountPath: "/var/www/sheepdog" imagePullPolicy: Always resources: requests: @@ -234,4 +238,4 @@ spec: subPath: "nginx.conf" - name: "nginx-config" mountPath: "/etc/nginx/conf.d/default.conf" - subPath: default.conf \ No newline at end of file + subPath: default.conf diff --git a/kube/services/sheepdog/sheepdog-gunicorn.yaml b/kube/services/sheepdog/sheepdog-gunicorn.yaml index 4f29496a4..653d3a148 100644 --- a/kube/services/sheepdog/sheepdog-gunicorn.yaml +++ b/kube/services/sheepdog/sheepdog-gunicorn.yaml @@ -10,4 +10,3 @@ data: user = 'gen3' group = 'gen3' timeout = 300 - worker_class = "uvicorn.workers.UvicornWorker" \ No newline at end of file diff --git a/kube/services/wts/wts-gunicorn.yaml b/kube/services/wts/wts-gunicorn.yaml index 55bf6e9c4..94283e97a 100644 --- a/kube/services/wts/wts-gunicorn.yaml +++ b/kube/services/wts/wts-gunicorn.yaml @@ -10,4 +10,3 @@ data: user = 'gen3' group = 'gen3' timeout = 300 - worker_class = "uvicorn.workers.UvicornWorker" \ No newline at end of file