woodpecker
by genofire
A Helm chart for Woodpecker CI
About this chart
woodpecker
Source Code: https://github.com/woodpecker-ci/woodpecker
Installation
To install the latest release of the chart:
# since > 1.6.1
helm install woodpecker oci://ghcr.io/woodpecker-ci/helm/woodpecker --version <VERSION>
# deprecated (but still functional)
helm repo add woodpecker https://woodpecker-ci.org/
helm install woodpecker woodpecker/woodpecker
Note: The woodpecker/woodpecker chart contains both the server and the agent.
If you want to install only the server or agent you can use the woodpecker/server or woodpecker/agent charts respectively.
Backend Configuration
The Kubernetes backend configuration is documented in greater detail in the Woodpecker documentation.
Terraform
If you're using the helm-release terraform module, the following definition can be used:
resource "helm_release" "woodpecker" {
name = "woodpecker"
chart = "woodpecker"
repository = "https://woodpecker-ci.org/"
create_namespace = true # optional
version = 3.7.7
namespace = "woodpecker"
count = 1 # optional
timeout = 90 # optional
Upgrading
See the 3.0.0 release notes.
- split
metrics.enabledand the PodMonitor deployment toprometheus.podmonitor.enabled - move
metrics.intervaltoprometheus.podmonitor.interval
Requirements
| Repository | Name | Version |
|---|---|---|
| agent | 2.0.1 | |
| server | 3.0.1 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalObjects | list | [] | Allow adding additional custom kubernets objects |
| agent.affinity | object | {} | Specifies the affinity |
| agent.dnsConfig | object | {} | Overrides the default DNS configuration |
| agent.enabled | bool | true | Enable the agent component |
| agent.env.WOODPECKER_BACKEND | string | "kubernetes" | |
| agent.env.WOODPECKER_BACKEND_K8S_NAMESPACE | string | "woodpecker" | |
| agent.env.WOODPECKER_BACKEND_K8S_NAMESPACE_PER_ORGANIZATION | bool | false | |
| agent.env.WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS | string | "" | |
| agent.env.WOODPECKER_BACKEND_K8S_POD_LABELS | string | "" | |
| agent.env.WOODPECKER_BACKEND_K8S_STORAGE_CLASS | string | "" | |
| agent.env.WOODPECKER_BACKEND_K8S_STORAGE_RWX | bool | true | |
| agent.env.WOODPECKER_BACKEND_K8S_VOLUME_SIZE | string | "10G" | |
| agent.env.WOODPECKER_CONNECT_RETRY_COUNT | string | "1" | |
| agent.env.WOODPECKER_SERVER | string | "woodpecker-server:9000" | |
| agent.extraSecretNamesForEnvFrom | list | [] | Add extra secret that is contains environment variables |
| agent.extraVolumeMounts | list | [] | Additional volumes that will be attached to the agent container |
| agent.extraVolumes | list | [] | Additional volumes that can be mounted in containers |
| agent.fullnameOverride | string | "" | Overrides the full name of the chart of the agent component |
Deploy woodpecker with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has woodpecker 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 chartwoodpecker is pinned at v3.7.8 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