k8s-aur-builder/helm/aur-builder/values.yaml

221 lines
7.4 KiB
YAML

# ── Images ────────────────────────────────────────────────────────────────────
image:
backend:
repository: jonasled.dev/jonasled/k8s-aur-builder/backend
tag: latest
pullPolicy: IfNotPresent
frontend:
repository: jonasled.dev/jonasled/k8s-aur-builder/frontend
tag: latest
pullPolicy: IfNotPresent
agent:
repository: jonasled.dev/jonasled/k8s-aur-builder/agent
tag: latest
pullPolicy: IfNotPresent
buildimage:
repository: jonasled.dev/jonasled/k8s-aur-builder/buildimage
tag: latest
# List of imagePullSecrets names, e.g. [{ name: regcred }]
pullSecrets: []
# ── Backend ───────────────────────────────────────────────────────────────────
backend:
enabled: true
replicaCount: 1
port: 8080
env:
# Database — only used when postgresql.enabled is false (external DB).
# When postgresql.enabled is true these are ignored; connection details are
# derived from the postgresql sub-chart and its auto-generated secret.
DB_DRIVER: postgres
DB_HOST: ""
DB_PORT: "5432"
DB_NAME: ""
DB_USER: ""
DB_SSLMODE: disable
# Build image used by K8s agent Jobs — derived from image.buildimage, set here as override only
# pacman repo name written into repo metadata
REPO_NAME: aur-custom
# S3 / object storage
S3_BUCKET: aur-packages
S3_REGION: us-east-1
S3_ENDPOINT: ""
# Public URL where packages are served (CDN, nginx proxy, etc.).
# Used in the pacman.conf snippet shown on the dashboard.
# If empty, derived from S3_ENDPOINT/S3_BUCKET.
REPO_URL: ""
# CORS — set to the frontend origin if backend and frontend are on different hosts
CORS_ORIGIN: ""
# OIDC (leave blank to disable)
OIDC_ISSUER: ""
OIDC_CLIENT_ID: ""
OIDC_REDIRECT_URL: ""
# ── Secrets ───────────────────────────────────────────────────────────────────
# Each secret field supports two mutually exclusive options:
# value: plain text value stored in a chart-managed K8s Secret
# valueFrom: reference an existing K8s Secret key directly
#
# JWT_SECRET is auto-generated with randAlphaNum 32 on first install when
# neither value nor valueFrom is set. The generated value is preserved across
# upgrades via a Secret lookup.
secrets:
JWT_SECRET:
value: ""
valueFrom:
secret: ""
key: ""
DB_PASSWORD:
value: ""
valueFrom:
secret: ""
key: ""
AWS_ACCESS_KEY_ID:
value: ""
valueFrom:
secret: ""
key: ""
AWS_SECRET_ACCESS_KEY:
value: ""
valueFrom:
secret: ""
key: ""
OIDC_CLIENT_SECRET:
value: ""
valueFrom:
secret: ""
key: ""
resources: {}
# resources:
# requests:
# cpu: 100m
# memory: 128Mi
# limits:
# cpu: 500m
# memory: 256Mi
# Persistent volume for uploaded ZIP sources.
# Set enabled: false to use an ephemeral emptyDir (uploads lost on restart).
persistence:
enabled: false
size: 1Gi
storageClass: ""
accessMode: ReadWriteOnce
# ── Frontend ──────────────────────────────────────────────────────────────────
frontend:
enabled: true
replicaCount: 1
port: 8080
resources: {}
# resources:
# requests:
# cpu: 10m
# memory: 32Mi
# limits:
# cpu: 100m
# memory: 64Mi
# ── Agent ─────────────────────────────────────────────────────────────────────
agent:
enabled: false
replicaCount: 1
# "k8s" — spawns Kubernetes Jobs for each build (recommended in-cluster)
# "docker" — calls the local Docker daemon (requires socket mount, for dev)
mode: k8s
# Comma-separated list of architectures this agent handles, e.g. "amd64,arm64"
architectures: "amd64"
# Seconds Kubernetes waits for in-progress builds to finish before force-killing
# the pod during a rolling update. 3600 = 1 hour; set to 0 to disable.
terminationGracePeriodSeconds: 3600
# Maximum number of builds the agent runs concurrently.
# For k8s mode this controls how many Jobs are spawned in parallel.
# For docker mode this controls how many containers run simultaneously.
maxParallelJobs: 1
# Namespace where K8s build Jobs are created (k8s mode only).
# Defaults to the release namespace when left empty.
# When set to a different namespace, the chart automatically creates the
# necessary RBAC in that namespace.
buildNamespace: ""
# Node selector applied to build Jobs (k8s mode only).
# Example: { dedicated: build }
nodeSelector: {}
# Tolerations applied to build Jobs (k8s mode only).
# Example:
# - key: dedicated
# operator: Equal
# value: build
# effect: NoSchedule
tolerations: []
# URL of the backend API. Required when backend.enabled=false (agent-only).
# In full-stack mode this is auto-derived from the in-cluster service name.
backendURL: ""
secrets:
agentID:
value: ""
valueFrom:
secret: ""
key: ""
agentToken:
value: ""
valueFrom:
secret: ""
key: ""
resources: {}
# resources:
# requests:
# cpu: 50m
# memory: 64Mi
# limits:
# cpu: 200m
# memory: 128Mi
# ── Ingress ───────────────────────────────────────────────────────────────────
ingress:
# Only rendered when both backend.enabled and frontend.enabled are true.
enabled: true
className: nginx
host: aur-builder.example.com
tls: false
tlsSecretName: ""
# Extra annotations, e.g. cert-manager.io/cluster-issuer: letsencrypt-prod
annotations: {}
# ── PostgreSQL (Bitnami sub-chart) ────────────────────────────────────────────
postgresql:
enabled: true
auth:
database: aurbuilder
username: aurbuilder
password: changeme
primary:
persistence:
enabled: true
size: 10Gi
# ── ServiceAccount ────────────────────────────────────────────────────────────
serviceAccount:
create: true
name: aur-builder
# Extra annotations, e.g. for IRSA / Workload Identity
annotations: {}
# ── RBAC ──────────────────────────────────────────────────────────────────────
rbac:
create: true
# When agent.buildNamespace differs from the release namespace, set this to
# true to have the chart create that namespace automatically.
createBuildNamespace: false