105 行
3.0 KiB
YAML
105 行
3.0 KiB
YAML
apiVersion: helm.cattle.io/v1
|
|
kind: HelmChart
|
|
metadata:
|
|
name: gitea
|
|
namespace: infra-devops
|
|
spec:
|
|
repo: https://dl.gitea.com/charts
|
|
chart: gitea
|
|
targetNamespace: infra-devops
|
|
version: 10.6.0
|
|
valuesContent: |-
|
|
affinity:
|
|
podAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 1
|
|
podAffinityTerm:
|
|
labelSelector:
|
|
matchLabels:
|
|
cnpg.io/cluster: cnpg-cluster-sh
|
|
role: primary
|
|
app.kubernetes.io/name: redis
|
|
app.kubernetes.io/component: master
|
|
topologyKey: kubernetes.io/hostname
|
|
namespaceSelector: {}
|
|
nodeAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 1
|
|
preference:
|
|
matchExpressions:
|
|
- key: kubernetes.io/hostname
|
|
operator: In
|
|
values:
|
|
- homea
|
|
redis-cluster:
|
|
enabled: false
|
|
postgresql-ha:
|
|
enabled: false
|
|
image:
|
|
tag: 1.22.6
|
|
ingress:
|
|
enabled: true
|
|
className: nginx
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
|
hosts:
|
|
- host: git.dev.cm
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
gitea:
|
|
podAnnotations:
|
|
backup.velero.io/backup-volumes: data
|
|
config:
|
|
APP_NAME: Git.dev.cm
|
|
RUN_MODE: prod
|
|
server:
|
|
DOMAIN: git.dev.cm
|
|
ROOT_URL: https://git.dev.cm/
|
|
database:
|
|
DB_TYPE: postgres
|
|
HOST: cnpg-cluster-sh-rw.infra-data:5432
|
|
NAME: gitea
|
|
USER: app
|
|
PASSWD: 6UeWq0EEQaP47eMjAt3hmmquGY3e6bqDanCeSKWDmLtLCuMe1TH0UGTKuaw2LfIO
|
|
SSL_MODE: disable
|
|
session:
|
|
PROVIDER: redis
|
|
PROVIDER_CONFIG: redis://:ribiPwYQNU6GWxCYR0Nj@redis-cluster-sh-master.infra-data:6379/0
|
|
cache:
|
|
ADAPTER: redis
|
|
HOST: redis://:ribiPwYQNU6GWxCYR0Nj@redis-cluster-sh-master.infra-data:6379/0?pool_size=100&idle_timeout=180s
|
|
queue:
|
|
TYPE: redis
|
|
CONN_STR: redis://:ribiPwYQNU6GWxCYR0Nj@redis-cluster-sh-master.infra-data:6379/0
|
|
repository:
|
|
DEFAULT_REPO_UNITS: repo.code,repo.releases,repo.issues,repo.pulls
|
|
service:
|
|
DISABLE_REGISTRATION: true
|
|
NO_REPLY_ADDRESS: noreply.dev.cm
|
|
picture:
|
|
GRAVATAR_SOURCE: https://cravatar.cn/avatar/
|
|
i18n:
|
|
LANGS: zh-CN,en-US
|
|
NAMES: 简体中文,English
|
|
other:
|
|
SHOW_FOOTER_VERSION: false
|
|
log:
|
|
LEVEL: Info
|
|
extraVolumes:
|
|
- name: gitea-custom-templates-volume
|
|
configMap:
|
|
name: gitea-custom-templates
|
|
items:
|
|
- key: home.tmpl
|
|
path: home.tmpl
|
|
- key: extra_links.tmpl
|
|
path: custom/extra_links.tmpl
|
|
extraContainerVolumeMounts:
|
|
- name: gitea-custom-templates-volume
|
|
readOnly: true
|
|
mountPath: /data/gitea/templates
|
|
|
|
|
|
|