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: ...@@ -75,7 +75,7 @@ spec:
path: / path: /
port: rpc port: rpc
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5
command: command:
- /bin/bash - /bin/bash
args: args:
...@@ -95,7 +95,7 @@ spec: ...@@ -95,7 +95,7 @@ spec:
- name: STATSD_PORT - name: STATSD_PORT
value: {{ .Values.statsdPort | default "9125" | quote }} value: {{ .Values.statsdPort | default "9125" | quote }}
- name: LOG_LEVEL - name: LOG_LEVEL
value: {{ .Values.storage.logLevel | quote }} value: {{ .Values.storage.logLevel | quote }}
{{- if .Values.storage.sentry.enabled }} {{- if .Values.storage.sentry.enabled }}
- name: SWH_SENTRY_ENVIRONMENT - name: SWH_SENTRY_ENVIRONMENT
value: {{ .Values.sentry.environment }} value: {{ .Values.sentry.environment }}
......
...@@ -3,7 +3,7 @@ templates: ...@@ -3,7 +3,7 @@ templates:
- storage/configmap.yaml - storage/configmap.yaml
- storage/deployment.yaml - storage/deployment.yaml
tests: tests:
- it: Storage is deployed - it: Storage is deployed
templates: templates:
- storage/deployment.yaml - storage/deployment.yaml
set: set:
...@@ -23,7 +23,7 @@ tests: ...@@ -23,7 +23,7 @@ tests:
value: 1 value: 1
- equal: - equal:
path: spec.template.spec.containers[0].resources.requests.memory path: spec.template.spec.containers[0].resources.requests.memory
value: memory value: memory
- equal: - equal:
path: spec.template.spec.containers[0].resources.requests.cpu path: spec.template.spec.containers[0].resources.requests.cpu
value: cpu value: cpu
...@@ -131,4 +131,4 @@ tests: ...@@ -131,4 +131,4 @@ tests:
value: my-secret value: my-secret
- equal: - equal:
path: spec.template.spec.containers[?(@.name == "storage")].env[?(@.name == "SWH_SENTRY_DSN")].valueFrom.secretKeyRef.key path: spec.template.spec.containers[?(@.name == "storage")].env[?(@.name == "SWH_SENTRY_DSN")].valueFrom.secretKeyRef.key
value: my-key value: my-key
\ No newline at end of file
...@@ -202,7 +202,7 @@ statsd_exporter: ...@@ -202,7 +202,7 @@ statsd_exporter:
imageVersion: "v0.22.7" imageVersion: "v0.22.7"
memcached: 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 enabled: false
image: memcached:1.6.18 image: memcached:1.6.18
memory: 256m memory: 256m
......
...@@ -103,5 +103,18 @@ graphql: ...@@ -103,5 +103,18 @@ graphql:
values: values:
- "true" - "true"
storage:
sentry:
enabled: true
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: swh/storage
operator: In
values:
- "true"
statsd_exporter: statsd_exporter:
enabled: true enabled: true
...@@ -170,3 +170,17 @@ storage_replayer: ...@@ -170,3 +170,17 @@ storage_replayer:
#requestedCpu: 80m #requestedCpu: 80m
autoScaling: autoScaling:
maxReplicaCount: 5 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- ...@@ -22,6 +22,8 @@ swh_loader_package_image: container-registry.softwareheritage.org/swh/infra/swh-
swh_loader_package_image_version: '20230220.1' 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: container-registry.softwareheritage.org/swh/infra/swh-apps/loader_svn
swh_loader_svn_image_version: '20230306.1' 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: container-registry.softwareheritage.org/swh/infra/swh-apps/storage_replayer
swh_storage_replayer_image_version: '20230321.1' swh_storage_replayer_image_version: '20230321.1'
swh_vault_cookers_image: container-registry.softwareheritage.org/swh/infra/swh-apps/vault_cookers 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