github-exporter

by k8s On Lab

Helm chartv0.0.4App v2.3.1Apache-2.0Verified publisher

A Helm chart for github-exporter

About this chart

github-exporter

A Helm chart for github-exporter

Homepage: https://github.com/githubexporter/github-exporter

Install

You can install this chart from the classic Helm repository or from OCI in GHCR.

Helm repository

helm repo add publiccharts https://charts.ar80.eu
helm repo update
helm install my-release publiccharts/github-exporter

OCI registry (GHCR)

helm registry login ghcr.io
helm install my-release oci://ghcr.io/k8sonlab/publiccharts/github-exporter --version <chart-version>

Maintainers

NameEmailUrl
varet80https://github.com/varet80

Source Code

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"githubexporter/github-exporter"
image.pullPolicystring"IfNotPresent"
image.tagstringnilOverrides the image tag. Upstream publishes Docker tags as release-.
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.annotationsobject{}Annotations to add to the service account
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
podAnnotationsobject{}
podSecurityContextobject{}
securityContext.capabilities.drop[0]string"ALL"
securityContext.readOnlyRootFilesystembooltrue
securityContext.runAsNonRootbooltrue
securityContext.runAsUserint1000
envobject{"FETCH_REPO_RELEASES_ENABLED":"true","GITHUB_RATE_LIMIT_ENABLED":"true","GITHUB_RESULTS_PER_PAGE":"100","LISTEN_PORT":"9171","LOG_LEVEL":"info","METRICS_PATH":"/metrics"}Environment variables for github-exporter. Set ORGS, REPOS, or USERS to choose what to monitor.
envSecretNamestring""Existing secret loaded as environment variables, for example GITHUB_TOKEN or GitHub App credentials.
secret.createboolfalseCreate a secret from secret.data and load it as environment variables.
secret.namestring""Secret name. Defaults to the chart fullname when create is true.
secret.dataobject{}Secret values exposed as environment variables, such as GITHUB_TOKEN.
service.typestring"ClusterIP"
service.portint9171
probes.liveness.enabledbooltrue
probes.liveness.pathstring"/"
probes.liveness.initialDelaySecondsint10
probes.liveness.failureThresholdint5
probes.liveness.timeoutSecondsint5
probes.liveness.periodSecondsint10
probes.readiness.enabledbooltrue
probes.readiness.pathstring"/metrics"
probes.readiness.initialDelaySecondsint10
probes.readiness.failureThresholdint5
probes.readiness.timeoutSecondsint5
probes.readiness.periodSecondsint20
probes.startup.enabledbooltrue
probes.startup.pathstring"/"
probes.startup.initialDelaySecondsint10
probes.startup.failureThresholdint60
probes.startup.timeoutSecondsint2
probes.startup.periodSecondsint5
resourcesobject{}
nodeSelectorobject{}
tolerationslist[]
affinityobject{}
extraVolumeslist[]
extraVolumeMountslist[]
serviceMonitorobject{"enabled":false,"endpointAdditions":{},"interval":"30s","labels":{},"namespaceSelector":{}}Support Prometheus ServiceMonitor
serviceMonitor.enabledboolfalseenable Service Monitor
serviceMonitor.labelsobject{}add Custom labels, for prometheus Service Monitor
serviceMonitor.intervalstring"30s"interval
serviceMonitor.namespaceSelectorobject{}namespace selector
serviceMonitor.endpointAdditionsobject{}endpoint additions - add endpoint modifications

Deploy github-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has github-exporter 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 chartgithub-exporter is pinned at v0.0.4 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