2021-10-01 12:20:59 +00:00
|
|
|
image:
|
2021-12-03 12:02:44 +00:00
|
|
|
repository: tccr.io/truecharts/gitea
|
2022-02-10 16:15:40 +00:00
|
|
|
tag: v1.16.1@sha256:6111b5797e58c6c1459b02f975902ad340d32f583ccab279e8818f4925cde1d1
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
customConfig: []
|
|
|
|
# - 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
|