# Helm values for the official Gitea chart (https://gitea.com/gitea/helm-chart).
# Tuned for a single small Vultr node: SQLite instead of a bundled Postgres,
# no Redis/cache dependency, modest resource requests.
#
# Install with (see docs/DEPLOYMENT.md Phase 4):
#   helm repo add gitea-charts https://dl.gitea.com/charts/
#   helm upgrade --install gitea gitea-charts/gitea \
#     --namespace gitea --create-namespace \
#     -f deploy/k8s/gitea/values.yaml

replicaCount: 1

# SQLite keeps this to a single pod with no extra database dependency.
# Fine for a personal/small-team instance; migrate to Postgres later if this
# ever needs to scale beyond one node.
postgresql:
  enabled: false
postgresql-ha:
  enabled: false
redis-cluster:
  enabled: false

persistence:
  enabled: true
  size: 10Gi
  # CHANGE ME if your Vultr node's disk is smaller than ~15-20Gi free, or if
  # you know you'll host many/large repos and images.
  # storageClassName defaults to k3s's built-in "local-path" provisioner.

gitea:
  admin:
    # Change this password after first login; it's only the seed value used
    # on first boot. Better yet, override it at install time with
    # `--set gitea.admin.password=...` instead of committing a real one here.
    existingSecret: ""
    username: apexadmin
    password: "changeme-before-first-boot"
    email: "hello@albertabril.com"

  config:
    server:
      DOMAIN: git.apexturf.es
      ROOT_URL: https://git.apexturf.es/
      HTTP_PORT: 3000
    database:
      DB_TYPE: sqlite3
    session:
      PROVIDER: memory
    cache:
      ADAPTER: memory
    queue:
      TYPE: level
    # Package registry (incl. the Docker/OCI container registry) is enabled
    # by default on modern Gitea, but set explicitly so this doesn't silently
    # depend on the chart's/Gitea's current default.
    packages:
      ENABLED: true

service:
  http:
    type: ClusterIP
    port: 3000

ingress:
  enabled: true
  className: traefik
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
  hosts:
    - host: git.apexturf.es
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: gitea-tls
      hosts:
        - git.apexturf.es

resources:
  requests:
    cpu: 100m
    memory: 256Mi
  limits:
    cpu: 500m
    memory: 512Mi
