HELM安装gitea
# HELM安装gitea
# 添加仓库
helm repo add gitea-charts https://dl.gitea.com/charts/
helm repo update
1
2
2
可能会有不能直接访问仓库的时候,那就需要拉到本地再使用本地安装的方式来安装了。
helm pull gitea-charts/gitea
1
接下来这里使用直接安装的方式:
helm install gitea gitea-charts/gitea -n cicd \
--set image.pullPolicy=IfNotPresent \
--set persistence.storageClass=nfs-client \
--set service.http.type=NodePort \
--set service.http.nodePort=30011 \
--set gitea.admin.username=dashuai \
--set gitea.admin.password=dashuai \
--set gitea.admin.email="dashuai1992@live.com" \
--set gitea.config.server.DOMAIN=172.29.102.177 \
--set gitea.config.server.SSH_DOMAIN=172.29.102.177 \
--set gitea.config.server.ROOT_URL=http://172.29.102.177:30011 \
--set postgresql-ha.enabled=false \
--set postgresql.enabled=true \
--set global.storageClass=nfs-client \
--set ingress.enabled=true \
--set ingress.className=nginx \
--set ingress.hosts[0].host=gitea.my.com \
--set ingress.hosts[0].paths[0].path=/ \
--set ingress.hosts[0].paths[0].pathType=Prefix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
安装完成后,我们还需要修改一下配置文件,要不然hook请求会有问题。
这个路径下的文件/data/volumes/cicd-gitea-shared-storage-pvc-67a0743b-8e5c-4a6e-90b8-e21e1de6ae2b/gitea/conf/app.ini
最后加上:
[webhook]
ALLOWED_HOST_LIST = 172.29.102.177/20
1
2
2
上次更新: 2024/08/08, 06:59:58