Gitea installation

来自WHY42
Riguz留言 | 贡献2024年4月18日 (四) 08:53的版本 (创建页面,内容为“<syntaxhighlight lang="bash"> helm repo add gitea-charts https://dl.gitea.com/charts/ helm install gitea gitea-charts/gitea -f values.yaml -n gitea </syntaxhighlight> values.yaml: <syntaxhighlight lang="yaml"> redis-cluster: enabled: false postgresql: enabled: true postgresql-ha: enabled: false persistence: enabled: true ingress: enabled: true className: nginx hosts: - host: agent-git.ksord.com paths: - pathType: Prefix…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
helm repo add gitea-charts https://dl.gitea.com/charts/
helm install gitea gitea-charts/gitea -f values.yaml -n gitea

values.yaml:

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

persistence:
  enabled: true

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: agent-git.ksord.com
      paths:
        - pathType: Prefix
          path: /
gitea:
  config:
    database:
      DB_TYPE: postgres
    session:
      PROVIDER: db
    cache:
      ADAPTER: memory
    queue:
      TYPE: level
    indexer:
      ISSUE_INDEXER_TYPE: bleve
      REPO_INDEXER_ENABLED: true
    service:
      DISABLE_REGISTRATION: true
    webhook:
      ALLOWED_HOST_LIST: 10.0.0.0/24
kubectl exec -it -n gitea gitea-74cd78d855-v7q77 bash
cat /data/gitea/conf/app.ini