lighthouse-ci
Enables running a server to display Lighthouse CI results
About this chart
Lighthouse CI Server
Lighthouse CI Server enables running a server to display Lighthouse CI results.
DISCLAIMER: This is an unofficial chart not supported by Lighthouse CI Server authors.
TL;DR;
$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/lighthouse-ci
or for an OCI-based registry:
$ helm install my-release oci://ghcr.io/cowboysysop/charts/lighthouse-ci
Introduction
This chart bootstraps a Lighthouse CI Server deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes >= 1.24
- Helm >= 3.9
Installing
Install the chart using:
$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/lighthouse-ci
or for an OCI-based registry:
$ helm install my-release oci://ghcr.io/cowboysysop/charts/lighthouse-ci
These commands deploy Lighthouse CI Server on the Kubernetes cluster in the default configuration and with the release name my-release. The deployment configuration can be customized by specifying the customization parameters with the helm install command using the --values or --set arguments. Find more information in the configuration section of this document.
Upgrading
Upgrade the chart deployment using:
$ helm upgrade my-release cowboysysop/lighthouse-ci
or for an OCI-based registry:
$ helm upgrade my-release oci://ghcr.io/cowboysysop/charts/lighthouse-ci
The command upgrades the existing my-release deployment with the most latest release of the chart.
Upgrading to version 9.0.0
The chart now uses forked versions of the Bitnami charts to reference the Bitnami Legacy repository:
- https://github.com/bitnami/containers/issues/83267
A label app.kubernetes.io/component will be added to the Deployment. Run this command before upgrading to prevent an immutable field error:
$ kubectl delete deployment/my-lighthouse-ci-deployment
Pod and container security contexts are now configured with default values.
The MariaDB subchart has been updated to a major release, see these upgrade instructions:
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-2020
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-2000
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1900
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1800
Information about services are no more injected into pod's environment variable.
Upgrading to version 8.0.0
The MariaDB subchart has been updated to a major release, see these upgrade instructions:
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1700
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1600
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1400
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1300
The PostgreSQL subchart has been updated to a major release, see these upgrade instructions:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql#to-1500
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql#to-1400
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql#to-1300
Upgrading to version 7.0.0
The chart is now tested with Kubernetes >= 1.24 and Helm >= 3.9.
Future upgrades may introduce undetected breaking changes if you continue to use older versions.
Upgrading to version 6.0.0
Some parameters related to port management have been modified:
- Parameter
service.porthas been renamedservice.ports.http. - Parameter
service.nodePorthas been renamedservice.nodePorts.http.
Upgrading to version 5.0.0
Some parameters related to image management have been modified:
- Registry prefix in
image.repositoryparameters is now configured inimage.registry. - Parameter
imagePullSecretshas been renamedglobal.imagePullSecrets.
Upgrading to version 4.0.0
The PostgreSQL subchart has been updated to a major release, see these upgrade instructions:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql#to-1200
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql#to-1100
Upgrading to version 3.0.0
The MariaDB subchart has been updated to a major release, see these upgrade instructions:
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1100
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb#to-1000
Upgrading to version 2.0.0
The chart is no more compatible with Helm 2.
Refer to the Helm documentation for more information.
Uninstalling
Uninstall the my-release deployment using:
$ helm uninstall my-release
The command deletes the release named my-release and frees all the kubernetes resources associated with the release.
TIP: Specify the --purge argument to the above command to remove the release from the store and make its name free for later use.
Configuration
Global parameters
| Name | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Common parameters
| Name | Description | Default |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | Partially override lighthouse-ci.fullname template with a string (will prepend the release name) | "" |
fullnameOverride | Fully override lighthouse-ci.fullname template with a string | "" |
namespaceOverride | Fully override common.names.namespace template with a string | "" |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
Parameters
| Name | Description | Default |
|---|---|---|
replicaCount | Number of replicas (do not change it) | 1 |
revisionHistoryLimit | Number of old history to retain to allow rollback | 10 |
updateStrategy.type | Update strategy type (do not change it) | Recreate |
image.registry | Image registry | docker.io |
image.repository | Image repository | patrickhulce/lhci-server |
image.tag | Image tag | 0.8.1 |
image.digest | Image digest | "" |
image.pullPolicy | Image pull policy | IfNotPresent |
pdb.create | Specifies whether a pod disruption budget should be created | false |
pdb.minAvailable | Minimum number/percentage of pods that should remain scheduled | 1 |
pdb.maxUnavailable | Maximum number/percentage of pods that may be made unavailable | nil |
serviceAccount.create | Specifies whether a service account should be created | true |
serviceAccount.annotations | Service account annotations | {} |
serviceAccount.name | The name of the service account to use (Generated using the lighthouse-ci.fullname template if not set) | nil |
enableServiceLinks | Whether information about services should be injected into pod's environment variable | false |
hostAliases | Pod host aliases | [] |
deploymentAnnotations | Additional deployment annotations | {} |
podAnnotations | Additional pod annotations | {} |
podLabels | Additional pod labels | {} |
podSecurityContext | Pod security context | |
podSecurityContext.seccompProfile.type | Set pod's Security Context seccomp profile | RuntimeDefault |
priorityClassName | Priority class name | nil |
runtimeClassName | Runtime class name | "" |
topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] |
securityContext | Container security context | |
securityContext.allowPrivilegeEscalation | Set container's Security Context allowPrivilegeEscalation | true |
securityContext.capabilities.drop | List of capabilities to be dropped | [] |
securityContext.readOnlyRootFilesystem | Set container's Security Context readOnlyRootFilesystem | false |
securityContext.runAsNonRoot | Whether the container must run as a non-root user | false |
securityContext.runAsUser | The UID to run the entrypoint of the container process | 0 |
securityContext.runAsGroup | The GID to run the entrypoint of the container process | 0 |
containerPorts.http | Container port for HTTP | 9001 |
livenessProbe.enabled | Enable liveness probe | true |
livenessProbe.initialDelaySeconds | Delay before the liveness probe is initiated | 0 |
livenessProbe.periodSeconds | How often to perform the liveness probe | 10 |
livenessProbe.timeoutSeconds | When the liveness probe times out | 1 |
livenessProbe.failureThreshold | Minimum consecutive failures for the liveness probe to be considered failed after having succeeded | 3 |
Deploy lighthouse-ci with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lighthouse-ci 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlighthouse-ci is pinned at v9.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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