Files
argocd-apps/apps/overlays/au-syd1/woodpecker/values.yaml
T
unkinben 1b781e0885 feat(woodpecker): set workflow pod priority class to power (#175)
## Summary
Sets `WOODPECKER_BACKEND_K8S_PRIORITY_CLASS: power` on the Woodpecker agent so all CI pipeline pods are scheduled with the `power` PriorityClass (value 100, preemptionPolicy: Never).

This means pipeline pods can be evicted when the cluster is under pressure but won't preempt other workloads.

## Dependency
Requires the `power` PriorityClass to exist on the cluster — deploy PR #174 (priority-classes app) first.

## Test plan
- Trigger a pipeline run and confirm pods are created with `priorityClassName: power`
- `kubectl get pod -n woodpecker -o jsonpath='{.items[*].spec.priorityClassName}'`

Reviewed-on: #175
2026-05-26 23:58:57 +10:00

63 lines
1.8 KiB
YAML

agent:
replicaCount: 3
env:
WOODPECKER_MAX_WORKFLOWS: "8"
WOODPECKER_BACKEND_K8S_PRIORITY_CLASS: power
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: cephrbd-fast-delete
WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 10G
WOODPECKER_BACKEND_K8S_STORAGE_RWX: false
WOODPECKER_LOG_LEVEL: debug
#extraSecretNamesForEnvFrom:
# - woodpecker-default-agent-secret
persistence:
storageClass: cephrbd-fast-delete
podAnnotations:
reloader.stakater.com/auto: "true"
resources:
requests:
cpu: 100m
limits:
memory: 128Mi
server:
statefulSet:
replicaCount: 1
env:
WOODPECKER_HOST: 'https://ci.k8s.syd1.au.unkin.net'
WOODPECKER_OPEN: "true"
WOODPECKER_ADMIN: "unkinben"
WOODPECKER_DISABLE_USER_AGENT_REGISTRATION: "true"
WOODPECKER_PLUGINS_PRIVILEGED: "woodpeckerci/plugin-docker-buildx,woodpeckerci/plugin-docker-buildx:latest-insecure"
extraSecretNamesForEnvFrom:
- woodpecker-gitea
- woodpecker-postgres-credentials
- woodpecker-database-config
persistentVolume:
storageClass: cephrbd-fast-delete
podAnnotations:
reloader.stakater.com/auto: "true"
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: vault-issuer
cert-manager.io/common-name: ci.k8s.syd1.au.unkin.net
cert-manager.io/private-key-size: "4096"
external-dns.alpha.kubernetes.io/hostname: ci.k8s.syd1.au.unkin.net
external-dns.alpha.kubernetes.io/target: 198.18.200.0
ingressClassName: nginx
hosts:
- host: ci.k8s.syd1.au.unkin.net
paths:
- path: /
backend:
servicePort: 80
tls:
- hosts:
- ci.k8s.syd1.au.unkin.net
secretName: ci-tls
resources:
requests:
cpu: 100m
limits:
memory: 128Mi