k3s-cluster/kubernetes/main/apps/dev/woodpecker/helm-release.yaml

83 lines
1.9 KiB
YAML
Raw Permalink Normal View History

apiVersion: helm.toolkit.fluxcd.io/v2
2023-09-07 15:57:40 +00:00
kind: HelmRelease
metadata:
name: woodpecker
namespace: dev
spec:
interval: 5m
chart:
spec:
chart: woodpecker
version: "1.6.2"
2023-09-07 15:57:40 +00:00
sourceRef:
kind: HelmRepository
name: woodpecker-charts
namespace: flux-system
values:
agent:
enabled: true
replicaCount: 4
extraSecretNamesForEnvFrom:
- woodpecker
# https://github.com/woodpecker-ci/helm/issues/154
secrets: {}
2023-09-07 15:57:40 +00:00
env:
WOODPECKER_BACKEND: kubernetes
WOODPECKER_SERVER: woodpecker-server.dev.svc.cluster.local:9000
WOODPECKER_BACKEND_K8S_NAMESPACE: dev
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: mainpool-hostpath
WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 5G
WOODPECKER_BACKEND_K8S_STORAGE_RWX: false
WOODPECKER_BACKEND_K8S_POD_LABELS: ""
WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS: ""
WOODPECKER_CONNECT_RETRY_COUNT: "1"
2023-09-07 15:57:40 +00:00
server:
enabled: true
env:
WOODPECKER_HOST: https://ci.${SECRET_NEW_DOMAIN}
WOODPECKER_BACKEND_K8S_NAMESPACE: dev
2023-09-07 15:57:40 +00:00
extraSecretNamesForEnvFrom:
- woodpecker
# https://github.com/woodpecker-ci/helm/issues/154
secrets: {}
2023-09-07 15:57:40 +00:00
persistentVolume:
enabled: true
size: 10Gi
mountPath: '/var/lib/woodpecker'
storageClass: mainpool-hostpath
prometheus:
podmonitor:
enabled: true
interval: 15s
labels:
release: kube-prometheus-stack
rules:
enabled: true
labels:
release: kube-prometheus-stack
2023-09-07 15:57:40 +00:00
ingress:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts:
- host: &host ci.${SECRET_NEW_DOMAIN}
2023-09-07 15:57:40 +00:00
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host