lighthouse

by joaquinito2051

Helm chartv0.0.939App 0.0.939

This chart bootstraps installation of [Lighthouse](https://github.com/jenkins-x/lighthouse).

About this chart

Lighthouse

This chart bootstraps installation of Lighthouse.

Installing

  • Add jenkins-x helm charts repo
helm repo add jenkins-x http://chartmuseum.jenkins-x.io

helm repo update
  • Install (or upgrade)
# This will install Lighthouse in the lighthouse namespace (with a my-lighthouse release name)

# Helm v2
helm upgrade --install my-lighthouse --namespace lighthouse jenkins-x/lighthouse

# Helm v3
helm upgrade --install my-lighthouse --namespace lighthouse jenkins-x/lighthouse

Look below for the list of all available options and their corresponding description.

Uninstalling

To uninstall the chart, simply delete the release.

# This will uninstall Lighthouse in the lighthouse namespace (assuming a my-lighthouse release name)

# Helm v2
helm delete --purge my-lighthouse

# Helm v3
helm uninstall my-lighthouse --namespace lighthouse

Values

KeyTypeDescriptionDefault
cluster.crds.createboolCreate custom resource definitionstrue
configMaps.configstringRaw config.yaml contentnil
configMaps.configUpdaterobjectSettings used to configure the config-updater plugin{"orgAndRepo":"","path":""}
configMaps.createboolEnables creation of config.yaml and plugins.yaml config mapsfalse
configMaps.pluginsstringRaw plugins.yaml contentnil
engines.jenkinsboolEnables the Jenkins enginefalse
engines.jxboolEnables the jx enginetrue
engines.tektonboolEnables the tekton enginefalse
envobjectEnvironment variables{"JX_DEFAULT_IMAGE":""}
foghorn.affinityobjectAffinity rules applied to the foghorn pods{}
foghorn.image.pullPolicystringTemplate for computing the foghorn controller docker image pull policy"{{ .Values.image.pullPolicy }}"
foghorn.image.repositorystringTemplate for computing the foghorn controller docker image repository"{{ .Values.image.parentRepository }}/lighthouse-foghorn"
foghorn.image.tagstringTemplate for computing the foghorn controller docker image tag"{{ .Values.image.tag }}"
foghorn.nodeSelectorobjectNode selector applied to the foghorn pods{}
foghorn.replicaCountintNumber of replicas1
foghorn.resources.limitsobjectResource limits applied to the foghorn pods{"cpu":"100m","memory":"256Mi"}
foghorn.resources.requestsobjectResource requests applied to the foghorn pods{"cpu":"80m","memory":"128Mi"}
foghorn.terminationGracePeriodSecondsintTermination grace period for foghorn pods180
foghorn.tolerationslistTolerations applied to the foghorn pods[]
gcJobs.concurrencyPolicystringDrives the job's concurrency policy"Forbid"
gcJobs.failedJobsHistoryLimitintDrives the failed jobs history limit1
gcJobs.image.pullPolicystringTemplate for computing the gc job docker image pull policy"{{ .Values.image.pullPolicy }}"
gcJobs.image.repositorystringTemplate for computing the gc job docker image repository"{{ .Values.image.parentRepository }}/lighthouse-gc-jobs"
gcJobs.image.tagstringTemplate for computing the gc job docker image tag"{{ .Values.image.tag }}"
gcJobs.maxAgestringMax age from which LighthouseJobs will be deleted"168h"
gcJobs.schedulestringCron expression to periodically delete LighthouseJobs"0/30 * * * *"
gcJobs.successfulJobsHistoryLimitintDrives the successful jobs history limit3
git.kindstringGit SCM provider (github, gitlab, stash)"github"
git.serverstringGit server URL""
githubApp.enabledboolEnables GitHub app authenticationfalse
githubApp.usernamestringGitHub app user name"jenkins-x[bot]"
hmacTokenstringSecret used for webhooks""
hmacTokenEnabledboolEnables the use of a hmac token. This should always be enabled if possible - though some git providers don't support it such as bitbucket cloudtrue
image.parentRepositorystringDocker registry to pull images from"gcr.io/jenkinsxio"
image.pullPolicystringImage pull policy"IfNotPresent"
image.tagstringDocker images tag"0.0.939"
jenkinscontroller.affinityobjectAffinity rules applied to the tekton controller pods{}
jenkinscontroller.image.pullPolicystringTemplate for computing the tekton controller docker image pull policy"{{ .Values.image.pullPolicy }}"
jenkinscontroller.image.repositorystringTemplate for computing the Jenkins controller docker image repository"{{ .Values.image.parentRepository }}/lighthouse-jenkins-controller"
jenkinscontroller.image.tagstringTemplate for computing the tekton controller docker image tag"{{ .Values.image.tag }}"
jenkinscontroller.jenkinsTokenstringThe token for authenticating the Jenkins usernil
jenkinscontroller.jenkinsURLstringThe URL of the Jenkins instancenil
jenkinscontroller.jenkinsUserstringThe username for the Jenkins usernil
jenkinscontroller.nodeSelectorobjectNode selector applied to the tekton controller pods{}
jenkinscontroller.podAnnotationsobjectAnnotations applied to the tekton controller pods{}
jenkinscontroller.resources.limitsobjectResource limits applied to the tekton controller pods{"cpu":"100m","memory":"256Mi"}
jenkinscontroller.resources.requestsobjectResource requests applied to the tekton controller pods{"cpu":"80m","memory":"128Mi"}
jenkinscontroller.serviceobjectService settings for the tekton controller{"annotations":{}}
jenkinscontroller.terminationGracePeriodSecondsintTermination grace period for tekton controller pods180
jenkinscontroller.tolerationslistTolerations applied to the tekton controller pods[]
keeper.affinityobjectAffinity rules applied to the keeper pods{}
keeper.datadog.enabledstringEnables datadog"true"
keeper.image.pullPolicystringTemplate for computing the keeper controller docker image pull policy"{{ .Values.image.pullPolicy }}"
keeper.image.repositorystringTemplate for computing the keeper controller docker image repository"{{ .Values.image.parentRepository }}/lighthouse-keeper"
keeper.image.tagstringTemplate for computing the keeper controller docker image tag"{{ .Values.image.tag }}"
keeper.livenessProbeobjectLiveness probe configuration{"initialDelaySeconds":120,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}
keeper.nodeSelectorobjectNode selector applied to the keeper pods{}
keeper.podAnnotationsobjectAnnotations applied to the keeper pods{}
keeper.probeobjectLiveness and readiness probes settings{"path":"/"}
keeper.readinessProbeobjectReadiness probe configuration{"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}
keeper.replicaCountintNumber of replicas1
keeper.resources.limitsobjectResource limits applied to the keeper pods{"cpu":"400m","memory":"512Mi"}
keeper.resources.requestsobjectResource requests applied to the keeper pods{"cpu":"100m","memory":"128Mi"}
keeper.serviceobjectService settings for the webhooks controller{"externalPort":80,"internalPort":8888,"type":"ClusterIP"}
keeper.statusContextLabelstringLabel used to report status to git provider"Lighthouse Merge Status"
keeper.terminationGracePeriodSecondsintTermination grace period for keeper pods30
keeper.tolerationslistTolerations applied to the keeper pods[]
lighthouseJobNamespacestringNamespace where LighthouseJobs and Pods are createdDeployment namespace
logFormatstringLog format"json"
oauthTokenstringGit token (used when GitHub app authentication is not enabled)""
tektoncontroller.affinityobjectAffinity rules applied to the tekton controller pods{}
tektoncontroller.dashboardTemplatestringGo template expression for URLs in the dashboard if not using Tekton dashboard""
tektoncontroller.dashboardURLstringthe dashboard URL (e.g. Tekton dashboard)""
tektoncontroller.image.pullPolicystringTemplate for computing the tekton controller docker image pull policy"{{ .Values.image.pullPolicy }}"
tektoncontroller.image.repositorystringTemplate for computing the tekton controller docker image repository"{{ .Values.image.parentRepository }}/lighthouse-tekton-controller"
tektoncontroller.image.tagstringTemplate for computing the tekton controller docker image tag"{{ .Values.image.tag }}"
tektoncontroller.nodeSelectorobjectNode selector applied to the tekton controller pods{}
tektoncontroller.podAnnotationsobjectAnnotations applied to the tekton controller pods{}
tektoncontroller.replicaCountintNumber of replicas1
tektoncontroller.resources.limitsobjectResource limits applied to the tekton controller pods{"cpu":"100m","memory":"256Mi"}
tektoncontroller.resources.requestsobjectResource requests applied to the tekton controller pods{"cpu":"80m","memory":"128Mi"}
tektoncontroller.serviceobjectService settings for the tekton controller{"annotations":{}}
tektoncontroller.terminationGracePeriodSecondsintTermination grace period for tekton controller pods180
tektoncontroller.tolerationslistTolerations applied to the tekton controller pods[]
userstringGit user name (used when GitHub app authentication is not enabled)""
webhooks.affinityobjectAffinity rules applied to the webhooks pods{}
webhooks.customDeploymentTriggerCommandstringdeployments can configure the ability to allow custom lighthouse triggers using their own unique chat prefix, for example extending the default /test trigger prefix let them specify customDeploymentTriggerPrefix: foo which means they can also use their own custom trigger /foo mycoolthing""
webhooks.image.pullPolicystringTemplate for computing the webhooks controller docker image pull policy"{{ .Values.image.pullPolicy }}"
webhooks.image.repositorystringTemplate for computing the webhooks controller docker image repository"{{ .Values.image.parentRepository }}/lighthouse-webhooks"
webhooks.image.tagstringTemplate for computing the webhooks controller docker image tag"{{ .Values.image.tag }}"
webhooks.ingress.annotationsobjectWebhooks ingress annotations{}
webhooks.ingress.enabledboolEnable webhooks ingressfalse
webhooks.ingress.hostslistWebhooks ingress host names[]
webhooks.labelsobjectallow optional labels to be added to the webhook deployment{}
webhooks.livenessProbeobjectLiveness probe configuration{"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}
webhooks.nodeSelectorobjectNode selector applied to the webhooks pods{}
webhooks.podAnnotationsobjectAnnotations applied to the webhooks pods{}
webhooks.probeobjectLiveness and readiness probes settings{"path":"/"}
webhooks.readinessProbeobjectReadiness probe configuration{"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}
webhooks.replicaCountintNumber of replicas1
webhooks.resources.limitsobjectResource limits applied to the webhooks pods{"cpu":"100m","memory":"512Mi"}
webhooks.resources.requestsobjectResource requests applied to the webhooks pods{"cpu":"80m","memory":"128Mi"}
webhooks.serviceobjectService settings for the webhooks controller{"annotations":{},"externalPort":80,"internalPort":8080,"type":"ClusterIP"}
webhooks.serviceNamestringAllows overriding the service name, this is here for compatibility reasons, regular users should clear this out"hook"
webhooks.terminationGracePeriodSecondsintTermination grace period for webhooks pods`180

Deploy lighthouse with OpenTenant

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