EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit b4c28990 authored by Bernhard Mallinger's avatar Bernhard Mallinger
Browse files

Set role constraints for services also for staging

This reduces the differences compared to ops
parent 523b7005
No related branches found
No related tags found
1 merge request!1Remove base and logging conf from vs-starter
Pipeline #20610 passed
......@@ -176,29 +176,23 @@ services:
{%- if environment == "staging" %}
UPLOAD_CONTAINER: "{{slug}}-data-staging"
{%- endif %}
{%- if environment == "ops" %}
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
{%- endif %}
ingestor:
image: registry.gitlab.eox.at/esa/prism/vs/pvs_ingestor{{release_version}} # bumpversion
environment:
REDIS_PREPROCESS_MD_QUEUE_KEY: "preprocess_queue"
INOTIFY_MASKS: "IN_MOVED_TO"
{%- if environment == "ops" %}
deploy:
placement:
constraints: [node.role == manager]
{%- endif %}
sftp:
image: registry.gitlab.eox.at/esa/prism/vs/pvs_sftp{{release_version}} # bumpversion
{%- if environment == "ops" %}
deploy:
placement:
constraints: [node.role == manager]
{%- endif %}
configs:
- source: sftp_ssh_host_rsa_key
target: /etc/ssh/ssh_host_rsa_key
......@@ -283,10 +277,8 @@ services:
target: SHIB_KEY
deploy:
replicas: 1
{%- if environment == "ops" %}
placement:
constraints: [node.role == manager]
{%- endif %}
labels:
# router for basic auth based access (https)
- "traefik.http.routers.{{slug}}-shibauth.rule=Host(`sso.{{slug}}.pass.copernicus.eu`) && PathPrefix(`/Shibboleth.sso`)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment