HomeSoftware Heritage

helm: Install parametrized services

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

helm: Install parametrized services

Dry run install check:

$ helm install --dry-run stuff ./worker
NAME: stuff
LAST DEPLOYED: Thu Sep 23 16:55:25 2021
NAMESPACE: default
STATUS: pending-install
REVISION: 1
TEST SUITE: None
HOOKS:
MANIFEST:
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: loaders
data:
  config.yml: |
    storage:
      cls: pipeline
      steps:
      - cls: buffer
        min_batch_size:
          content: 10000
          content_bytes: 104857600
          directory: 10000
          revision: 10000
      - cls: filter
      - cls: retry
      - cls: remote
        url: http://storage:5002/

    celery:
      task_broker: amqp://guest:guest@amqp//
      task_queues:
       - swh.loader.git.tasks.UpdateGitRepository
  entrypoint.sh: |
    #!/bin/bash

    set -e

    echo Starting the swh Celery worker
    exec python -m celery \
                --app=swh.scheduler.celery_backend.config.app \
                worker \
                --pool=prefork --events \
                --concurrency=${CONCURRENCY} \
                --max-tasks-per-child=${MAX_TASKS_PER_CHILD} \
                -Ofair --loglevel=${LOGLEVEL} \
                --hostname "${HOSTNAME}"
---
apiVersion: v1
kind: Service
metadata:
  name: storage
spec:
  type: ExternalName
  externalName: swh-storage
---
apiVersion: v1
kind: Service
metadata:
  name: amqp
spec:
  type: ExternalName
  externalName: amqp
---
...

Related to T3592

Details

Provenance
ardumontAuthored on Sep 23 2021, 4:55 PM
ardumontPushed on Sep 29 2021, 5:48 PM

Commit No Longer Exists

This commit no longer exists in the repository.