# -- The number of replicas for the deployment replicaCount: 2 image: registry: docker.io repository: woodpeckerci/woodpecker-agent pullPolicy: Always tag: 'next' env: # -- Add the environment variables for the agent component WOODPECKER_SERVER: 'woodpecker-server.woodpecker.svc.cluster.local:9000' WOODPECKER_BACKEND: kubernetes WOODPECKER_BACKEND_K8S_NAMESPACE: woodpecker-agent WOODPECKER_BACKEND_K8S_STORAGE_CLASS: 'ssd' WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 10G WOODPECKER_BACKEND_K8S_STORAGE_RWX: false WOODPECKER_BACKEND_K8S_POD_LABELS: '' WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS: '' WOODPECKER_CONNECT_RETRY_COUNT: '1' mapAgentSecret: false # -- Add extra secret that is contains environment variables extraSecretNamesForEnvFrom: - woodpecker-secret persistence: enabled: true size: 1Gi storageClass: 'ssd' accessModes: - ReadWriteOnce # -- Add pod security context podSecurityContext: runAsUser: 1000 runAsGroup: 2000 fsGroup: 2000 # -- Add security context securityContext: capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1000 runAsGroup: 2000 # -- Specifies the resources for the agent component resources: limits: cpu: 2000m memory: 1024Mi requests: cpu: 10m memory: 10Mi