Skip to content
Snippets Groups Projects
Verified Commit 4ea580ef authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

staging: Deploy objstorage

Refs. swh/infra/sysadm-environment#5164
parent 0300f567
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,12 @@ stagingNetworkRanges:
noopObjectStorage:
cls: noop
readWriteObjstorageConfiguration:
cls: pathslicing
root: "/srv/softwareheritage/objects"
slicing: 0:1/1:5
client_max_size: 1073741824
storagePipelineSteps:
- &bufferStorage
cls: buffer
......@@ -294,6 +300,9 @@ externalServices:
storage-postgresql:
internalName: storage-postgresql-rpc-ingress
target: archive-staging-rke2-ingress-nginx-controller.ingress-nginx.svc.cluster.local
# objstorage-read-write:
# internalName: objstorage-read-write-rpc-ingress
# target: archive-staging-rke2-ingress-nginx-controller.ingress-nginx.svc.cluster.local
vault:
hosts:
......
......@@ -830,3 +830,41 @@ deposit:
extraction_dir: "/tmp/swh-deposit/archive/"
cache_uri: memcached:11211
objstorage:
enabled: true
port: 5003
priorityClassName: frontend-rpc
deployments:
# Each key will be an objstorage instance to be deployed
# The mandatory objstorageConfigurationRef key should target a dict
# with the specific objstorage configuration
read-write:
enabled: true
logLevel: INFO
requestedCpu: 50m
requestedMemory: 100Mi
gunicorn:
threads: 5
workers: 2
timeout: 60
autoScaling:
minReplicaCount: 2
maxReplicaCount: 10
cpuPercentageUsage: 100
# mandatory
# check readWriteStorageConfiguration example to configure your storage
objstorageConfigurationRef: readWriteObjstorageConfiguration
# Deploy an ingress to access the objstorage
hosts:
- objstorage.staging.swh.network
ingress:
enabled: true
# mandatory if ingress is enabled
# the hostname on which the objstorage must be reachable
# Optional: the ingress classname to use
className: nginx
whitelistSourceRangeRef: stagingNetworkRanges
endpoints:
default:
paths:
- path: /
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