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

production/storage: Deploy banco objstorage pathslicing

Refs. swh/infra/sysadm-environment#5226
parent 6bbe7caf
No related branches found
No related tags found
No related merge requests found
...@@ -320,6 +320,11 @@ pathslicingSaamZfsObjstorageConfiguration: &objstorage-saam-zfs-pathslicing-conf ...@@ -320,6 +320,11 @@ pathslicingSaamZfsObjstorageConfiguration: &objstorage-saam-zfs-pathslicing-conf
slicing: 0:2/0:5 slicing: 0:2/0:5
compression: none compression: none
readonlyBancoXfsObjstorageConfiguration:
cls: pathslicing
root: "/srv/softwareheritage/objects"
slicing: 0:2/2:4/4:6
multiplexerBancoSaamRemoteConfiguration: multiplexerBancoSaamRemoteConfiguration:
cls: multiplexer cls: multiplexer
objstorages: objstorages:
......
...@@ -1510,6 +1510,57 @@ objstorage: ...@@ -1510,6 +1510,57 @@ objstorage:
default: default:
paths: paths:
- path: / - path: /
ro-banco-xfs:
enabled: true
requestedCpu: 250m
requestedMemory: 1024Mi
replicas: 2
gunicorn:
workers: 4
threads: 2
timeout: 3600
objstorageConfigurationRef: readonlyBancoXfsObjstorageConfiguration
extraRpcConfiguration:
client_max_size: 1073741824
extraVolumes:
pathslicing-ro:
mountPath: /srv/softwareheritage/objects
volumeDefinition:
hostPath:
path: /srv/softwareheritage/objects
type: Directory
readOnly: true
# Deploy only on saam
nodeSelector:
kubernetes.io/hostname: banco
# And add a specific affinity
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: swh/objstorage-pathslicing
operator: In
values:
- "true"
# Deploy an ingress to access the objstorage
hosts:
- objstorage-ro-banco-xfs-rpc-ingress
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: internalNetworkRanges
extraAnnotations:
nginx.ingress.kubernetes.io/proxy-body-size: 4G
nginx.ingress.kubernetes.io/proxy-buffering: "on"
nginx.ingress.kubernetes.io/client-body-buffer-size: 128K
endpoints:
default:
paths:
- path: /
deposit: deposit:
enabled: true enabled: true
......
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