indexer

by deps.cloud

Helm chartv0.3.5App 0.3.5Verified publisherOfficial

A Helm chart for running the deps.cloud indexer process

About this chart

Indexer

Indexer crawls version control providers supported by the deps.cloud ecosystem. It's responsible for discovering, cloning, and crawling repositories and their content.

Introduction

This chart bootstraps an indexer deployment on a Kubernetes cluster using the Helm package manager.

Current chart version is 0.3.5

Source Code

Prerequisites

  • Kubernetes 1.15+
  • Helm 3.0+

Installing the Chart

To install the chart with the release name indexer:

$ helm repo add depscloud https://depscloud.github.io/deploy/charts
$ helm install indexer depscloud/indexer

The command deploys indexer on the Kubernetes cluster using the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm search repo --versions

Uninstalling the Chart

To uninstall/delete the indexer deployment:

$ helm delete indexer

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following table lists the configurable parameters of the indexer chart and their default values.

KeyTypeDefaultDescription
affinityobject{}
configobject{"accounts":[{"github":{"organizations":["depscloud"],"strategy":"HTTP"}}]}Configure the accounts to index. See the documentation for more information.
externalConfig.configMapRef.namestring""The name of the config map containing the config.yaml file.
externalConfig.secretRef.namestring""The name of the secret containing the config.yaml file.
extractor.addressstring"dns:///extractor:8090"Configures the connection string for the extractor.
extractor.secretNamestring""Configures mTLS for the extractor. The secret needs 3 keys: tls.crt,
fullnameOverridestring""
global.labelsobject{}Common labels added to all resources.
image.pullPolicystring"IfNotPresent"
image.repositorystring"ocr.sh/depscloud/indexer"
image.tagstring""
imagePullSecretslist[]
labelsobject{}Labels added to all resources. These are joined with the global configuration for the deployment.
metrics.dashboard.enabledboolfalseEnables the creation of the dashboard config map.
metrics.dashboard.namespacestring""Specify what namespace the config map should be deployed to. This may differ from your application configuration. Defaults to the namespace of the release.
metrics.dashboard.sidecar.labelstring"grafana_dashboard"The label used by the sidecar to select the dashboard.
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}Annotations for the pod.
podSecurityContextobject{}
resourcesobject{}Configure the resources allocated to the process.
schedulestring"@daily"The schedule to run on. If not set, then the indexer will run as a job instead of on a recurring schedule.
securityContextobject{}
serviceAccount.automountTokenboolfalseDetermine pods should automount the token.
serviceAccount.createbooltrueSpecifies whether a service account should be created.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]
tracker.addressstring"dns:///tracker:8090"Configures the connection string for the tracker.
tracker.secretNamestring""Configures mTLS for the tracker. The secret needs 3 keys: tls.crt,
workersint5The number of worker threads to index repositories.

Deploy indexer with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has indexer on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartindexer is pinned at v0.3.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply