2021-10-01 12:20:59 +00:00
|
|
|
image:
|
2021-12-03 12:02:44 +00:00
|
|
|
repository: tccr.io/truecharts/gitea
|
2023-11-14 18:45:12 +00:00
|
|
|
tag: v1.21.0@sha256:6784f98018b9178005c028b3035b7b5b23937a8fa0283b52e00074a43e0d603f
|
2021-10-01 12:20:59 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
2021-11-28 09:26:31 +00:00
|
|
|
port: 10037
|
2021-11-06 21:55:18 +00:00
|
|
|
targetPort: 3000
|
2021-10-01 12:20:59 +00:00
|
|
|
ssh:
|
2021-11-08 13:42:18 +00:00
|
|
|
enabled: true
|
2021-10-01 12:20:59 +00:00
|
|
|
ports:
|
|
|
|
ssh:
|
2021-11-08 13:42:18 +00:00
|
|
|
enabled: true
|
2021-10-01 12:20:59 +00:00
|
|
|
port: 2222
|
|
|
|
targetPort: 2222
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/data"
|
2023-04-30 19:15:20 +00:00
|
|
|
targetSelectAll: true
|
2021-10-01 12:20:59 +00:00
|
|
|
varlib:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/var/lib/gitea"
|
|
|
|
type: emptyDir
|
|
|
|
# Configure commit/action signing prerequisites
|
|
|
|
signing:
|
|
|
|
enabled: true
|
|
|
|
gpgHome: /data/git/.gnupg
|
|
|
|
admin:
|
|
|
|
username: giteaadmin
|
|
|
|
password: r8sA8CPHD9!bt6d
|
|
|
|
email: "gitea@local.domain"
|
|
|
|
metrics:
|
2023-04-30 19:15:20 +00:00
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
type: "servicemonitor"
|
2023-10-14 20:30:33 +00:00
|
|
|
endpoints:
|
|
|
|
- port: main
|
|
|
|
path: /metrics
|
2021-10-01 12:20:59 +00:00
|
|
|
ldap:
|
|
|
|
enabled: false
|
|
|
|
# name:
|
|
|
|
# securityProtocol:
|
|
|
|
# host:
|
|
|
|
# port:
|
|
|
|
# userSearchBase:
|
|
|
|
# userFilter:
|
|
|
|
# adminFilter:
|
|
|
|
# emailAttribute:
|
|
|
|
# bindDn:
|
|
|
|
# bindPassword:
|
|
|
|
# usernameAttribute:
|
|
|
|
# sshPublicKeyAttribute:
|
|
|
|
oauth:
|
|
|
|
enabled: false
|
|
|
|
# name:
|
|
|
|
# provider:
|
|
|
|
# key:
|
|
|
|
# secret:
|
|
|
|
# autoDiscoverUrl:
|
|
|
|
# useCustomUrls:
|
|
|
|
# customAuthUrl:
|
|
|
|
# customTokenUrl:
|
|
|
|
# customProfileUrl:
|
|
|
|
# customEmailUrl:
|
|
|
|
config:
|
|
|
|
APP_NAME: "Gitea: Git with a cup of tea"
|
|
|
|
RUN_MODE: dev
|
2022-08-13 17:36:29 +00:00
|
|
|
ALLOWED_HOST_LIST: "127.0.0.1"
|
2022-11-30 19:30:01 +00:00
|
|
|
nodeIP: 127.0.0.1
|
2023-04-30 19:15:20 +00:00
|
|
|
customConfig: []
|
|
|
|
# - name: test
|
|
|
|
# keys:
|
|
|
|
# - name: testkey
|
|
|
|
# value: testvalue
|
2021-10-01 12:20:59 +00:00
|
|
|
|
|
|
|
# Enabled postgres
|
2023-04-30 19:15:20 +00:00
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
2021-10-01 12:20:59 +00:00
|
|
|
|
2023-04-30 19:15:20 +00:00
|
|
|
user: gitea
|
|
|
|
database: gitea
|
2021-10-01 12:20:59 +00:00
|
|
|
# -- memcached dependency settings
|
|
|
|
memcached:
|
|
|
|
enabled: true
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-04-30 19:15:20 +00:00
|
|
|
open:
|
|
|
|
enabled: true
|
|
|
|
securityContext:
|
|
|
|
container:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
fsGroup: 1000
|
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
initContainers:
|
|
|
|
1-init-directories:
|
|
|
|
enabled: true
|
|
|
|
imageSelector: image
|
|
|
|
type: init
|
2023-05-23 08:26:41 +00:00
|
|
|
command:
|
|
|
|
- "/usr/sbin/init_directory_structure.sh"
|
2023-04-30 19:15:20 +00:00
|
|
|
securityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsNonRoot: false
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: gitea-env
|
|
|
|
2-configure-gitea:
|
|
|
|
enabled: true
|
|
|
|
imageSelector: image
|
|
|
|
type: init
|
2023-05-23 08:26:41 +00:00
|
|
|
command:
|
|
|
|
- "/usr/sbin/configure_gitea.sh"
|
2023-04-30 19:15:20 +00:00
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: gitea-env
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
type: tcp
|
|
|
|
readiness:
|
|
|
|
type: tcp
|
|
|
|
startup:
|
|
|
|
type: tcp
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: gitea-env
|