2021-11-16 15:25:35 +00:00
|
|
|
image:
|
2021-12-03 15:44:22 +00:00
|
|
|
repository: tccr.io/truecharts/gitea
|
2021-12-24 21:09:01 +00:00
|
|
|
tag: v1.15.8@sha256:21aff2db5a9bb8430d1cac3931836dc9682223fb0dfbbff4ab16fc64fb265455
|
2021-11-16 15:25:35 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
2021-11-30 13:04:19 +00:00
|
|
|
port: 10037
|
2021-11-16 15:25:35 +00:00
|
|
|
targetPort: 3000
|
|
|
|
ssh:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
ssh:
|
|
|
|
enabled: true
|
|
|
|
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
|
|
|
|
mountPath: "/usr/sbin"
|
|
|
|
- name: temp
|
|
|
|
mountPath: "/tmp"
|
|
|
|
- name: config
|
|
|
|
mountPath: "/etc/gitea/conf"
|
|
|
|
- name: data
|
|
|
|
mountPath: "/data"
|
|
|
|
2-configure-gitea:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
command: ["/usr/sbin/configure_gitea.sh"]
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: gitea-env
|
|
|
|
volumeMounts:
|
|
|
|
- name: init
|
|
|
|
mountPath: "/usr/sbin"
|
|
|
|
- name: temp
|
|
|
|
mountPath: "/tmp"
|
|
|
|
- name: data
|
|
|
|
mountPath: "/data"
|
|
|
|
|
|
|
|
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
|
|
|
|
existingSecret: "dbcreds"
|
|
|
|
postgresqlUsername: gitea
|
|
|
|
postgresqlDatabase: gitea
|
|
|
|
|
|
|
|
# -- memcached dependency settings
|
|
|
|
memcached:
|
|
|
|
enabled: true
|