2021-10-01 12:20:59 +00:00
|
|
|
image:
|
2021-12-03 12:02:44 +00:00
|
|
|
repository: tccr.io/truecharts/gitea
|
2022-09-10 10:05:59 +00:00
|
|
|
tag: 1.17.2@sha256:51729d57ee659d986c23249699528a16a52d161b56fcac5ceb3dab06123d6df1
|
2021-10-01 12:20:59 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
2022-03-31 20:53:44 +00:00
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
fsGroup: 1000
|
|
|
|
|
2021-10-01 12:20:59 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: gitea-env
|
|
|
|
|
|
|
|
initContainers:
|
|
|
|
1-init-directories:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
command: ["/usr/sbin/init_directory_structure.sh"]
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsNonRoot: false
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: gitea-env
|
|
|
|
volumeMounts:
|
|
|
|
- name: init
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/usr/sbin"
|
2021-10-01 12:20:59 +00:00
|
|
|
- name: temp
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/tmp"
|
2021-10-01 12:20:59 +00:00
|
|
|
- name: config
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/etc/gitea/conf"
|
2021-10-01 12:20:59 +00:00
|
|
|
- name: data
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/data"
|
2021-10-01 12:20:59 +00:00
|
|
|
2-configure-gitea:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
command: ["/usr/sbin/configure_gitea.sh"]
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: gitea-env
|
|
|
|
volumeMounts:
|
|
|
|
- name: init
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/usr/sbin"
|
2021-10-01 12:20:59 +00:00
|
|
|
- name: temp
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/tmp"
|
2021-10-01 12:20:59 +00:00
|
|
|
- name: data
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/data"
|
2021-10-01 12:20:59 +00:00
|
|
|
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/data"
|
|
|
|
temp:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/tmp"
|
|
|
|
type: emptyDir
|
|
|
|
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:
|
|
|
|
enabled: false
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: false
|
|
|
|
# additionalLabels:
|
|
|
|
# prometheus-release: prom1
|
|
|
|
|
|
|
|
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"
|
2021-10-01 12:20:59 +00:00
|
|
|
|
2022-07-22 18:23:01 +00:00
|
|
|
customConfig:
|
|
|
|
[]
|
2021-10-01 12:20:59 +00:00
|
|
|
# - name: test
|
|
|
|
# keys:
|
|
|
|
# - name: testkey
|
|
|
|
# value: testvalue
|
|
|
|
|
|
|
|
# Enabled postgres
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
2021-10-09 23:20:01 +00:00
|
|
|
existingSecret: "dbcreds"
|
2021-10-01 12:20:59 +00:00
|
|
|
postgresqlUsername: gitea
|
|
|
|
postgresqlDatabase: gitea
|
|
|
|
|
|
|
|
# -- memcached dependency settings
|
|
|
|
memcached:
|
|
|
|
enabled: true
|
2022-08-08 21:25:02 +00:00
|
|
|
|
|
|
|
portal:
|
|
|
|
enabled: true
|