Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9336980
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
View Options
diff --git a/sysadmin/T3592-elastic-workers/worker/templates/deployment.yaml b/sysadmin/T3592-elastic-workers/worker/templates/deployment.yaml
new file mode 100644
index 0000000..c2a6f63
--- /dev/null
+++ b/sysadmin/T3592-elastic-workers/worker/templates/deployment.yaml
@@ -0,0 +1,61 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: loaders
+ labels:
+ app: loaders
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: loaders
+ strategy:
+ type: RollingUpdate
+ rollingUpdate:
+ maxSurge: 1
+ template:
+ metadata:
+ labels:
+ app: loaders
+ spec:
+ containers:
+ - name: loaders
+ image: {{ .Values.swh.loader.image }}:{{ .Values.swh.loader.version }}
+ imagePullPolicy: Always
+ command:
+ - /entrypoint.sh
+ resources:
+ requests:
+ memory: "256Mi"
+ cpu: "200m"
+ limits:
+ memory: "4000Mi"
+ cpu: "1200m"
+ lifecycle:
+ preStop:
+ exec:
+ command: ["kill", "1"]
+ env:
+ - name: CONCURRENCY
+ value: "1"
+ - name: MAX_TASKS_PER_CHILD
+ value: "5"
+ - name: LOGLEVEL
+ value: "INFO"
+ - name: SWH_CONFIG_FILENAME
+ value: /etc/softwareheritage/config.yml
+ volumeMounts:
+ - name: config
+ mountPath: /etc/softwareheritage/config.yml
+ subPath: config.yml
+ readOnly: true
+ - name: config
+ mountPath: /entrypoint.sh
+ subPath: entrypoint.sh
+ readOnly: true
+ volumes:
+ - name: config
+ configMap:
+ name: loaders
+ defaultMode: 0777
diff --git a/sysadmin/T3592-elastic-workers/worker/values.yaml b/sysadmin/T3592-elastic-workers/worker/values.yaml
index 770b062..89a14b3 100644
--- a/sysadmin/T3592-elastic-workers/worker/values.yaml
+++ b/sysadmin/T3592-elastic-workers/worker/values.yaml
@@ -1,11 +1,16 @@
# Default values for worker.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
amqp:
user: guest
password: guest
host: amqp
storage:
host: swh-storage
+
+swh:
+ loader:
+ image: swh/loaders
+ version: latest
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Jul 4 2025, 7:50 AM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3250453
Attached To
rDSNIP Code snippets
Event Timeline
Log In to Comment