How to run more than one replicas?

I’m trying to run gitea in kubernetes and it works for single instance, but if I try to set replicaCount to 2, pods won’t start.

Error: INSTALLATION FAILED: template: gitea/templates/gitea/deployment.yaml:29:28: executing “gitea/templates/gitea/deployment.yaml” at <include (print $.Template.BasePath “/gitea/config.yaml”) .>: error calling include: template: gitea/templates/gitea/config.yaml:28:40: executing “gitea/templates/gitea/config.yaml” at <“cron.GIT_GC_REPOS”>: wrong type for value; expected map[string]interface {}; got string

Where does it come from? Do I need to change some other settings as well?

my values.yaml

replicaCount: 2

redis-cluster:
  enabled: false
postgresql:
  enabled: false
postgresql-ha:
  enabled: false

persistence:
  enabled: true
  create: false
  mount: true
  claimName: cluster-nfs-pvc
  size: 10Gi
  accessModes:
    - ReadWriteMany
  labels: {}
  storageClass:
  subPath:
  annotations:
    helm.sh/resource-policy: keep

gitea:
  admin:
    existingSecret:
    username: admin
    password: admin
    email: xxx@mycomp

  config:
    server:
      DOMAIN: xxx
      ROOT_URL: xxx
      SSH_LISTEN_PORT: 2222
    database:
      DB_TYPE: postgres
      HOST: dbserver:5432
      NAME: gitea_db
      USER: gitea_user
      PASSWD: xxxxxx
      SCHEMA: public
    session:
      PROVIDER: memory
    cache:
      ADAPTER: memory
    queue:
      TYPE: level

pv-pvc.yaml

apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-nfs-cluster
spec:
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  nfs:
    server: nfsserver
    path: /nfs/qtest/gitea
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: cluster-nfs-pvc
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: 10Gi