Skip to content
Snippets Groups Projects
Commit b0a05c85 authored by Guillaume Samson's avatar Guillaume Samson
Browse files

swh: deploy storage service in staging environment

Related to swh/infra/sysadm-environment#4811
parent d6429cf7
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ spec:
path: /
port: rpc
initialDelaySeconds: 10
periodSeconds: 5
periodSeconds: 5
command:
- /bin/bash
args:
......@@ -95,7 +95,7 @@ spec:
- name: STATSD_PORT
value: {{ .Values.statsdPort | default "9125" | quote }}
- name: LOG_LEVEL
value: {{ .Values.storage.logLevel | quote }}
value: {{ .Values.storage.logLevel | quote }}
{{- if .Values.storage.sentry.enabled }}
- name: SWH_SENTRY_ENVIRONMENT
value: {{ .Values.sentry.environment }}
......
......@@ -3,7 +3,7 @@ templates:
- storage/configmap.yaml
- storage/deployment.yaml
tests:
- it: Storage is deployed
- it: Storage is deployed
templates:
- storage/deployment.yaml
set:
......@@ -23,7 +23,7 @@ tests:
value: 1
- equal:
path: spec.template.spec.containers[0].resources.requests.memory
value: memory
value: memory
- equal:
path: spec.template.spec.containers[0].resources.requests.cpu
value: cpu
......@@ -131,4 +131,4 @@ tests:
value: my-secret
- equal:
path: spec.template.spec.containers[?(@.name == "storage")].env[?(@.name == "SWH_SENTRY_DSN")].valueFrom.secretKeyRef.key
value: my-key
\ No newline at end of file
value: my-key
......@@ -202,7 +202,7 @@ statsd_exporter:
imageVersion: "v0.22.7"
memcached:
# Deploy a memcached instance used by the webapp and storage for sessions caching
# Deploy a memcached instance used by the webapp and graphql for sessions caching
enabled: false
image: memcached:1.6.18
memory: 256m
......
......@@ -103,5 +103,18 @@ graphql:
values:
- "true"
storage:
sentry:
enabled: true
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: swh/storage
operator: In
values:
- "true"
statsd_exporter:
enabled: true
......@@ -170,3 +170,17 @@ storage_replayer:
#requestedCpu: 80m
autoScaling:
maxReplicaCount: 5
storage:
enabled: true
replicas: 1
requestedCpu: 50m
requestedMemory: 100Mi
autoScaling:
maxReplicaCount: 1
storageClass: cassandra
cassandra:
seeds:
- cassandra1.internal.staging.swh.network
- cassandra2.internal.staging.swh.network
- cassandra3.internal.staging.swh.network
\ No newline at end of file
......@@ -22,6 +22,8 @@ swh_loader_package_image: container-registry.softwareheritage.org/swh/infra/swh-
swh_loader_package_image_version: '20230220.1'
swh_loader_svn_image: container-registry.softwareheritage.org/swh/infra/swh-apps/loader_svn
swh_loader_svn_image_version: '20230306.1'
swh_storage_image: container-registry.softwareheritage.org/swh/infra/swh-apps/storage
swh_storage_image_version: '20230327.1'
swh_storage_replayer_image: container-registry.softwareheritage.org/swh/infra/swh-apps/storage_replayer
swh_storage_replayer_image_version: '20230321.1'
swh_vault_cookers_image: container-registry.softwareheritage.org/swh/infra/swh-apps/vault_cookers
......
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