-
Notifications
You must be signed in to change notification settings - Fork 66
/
values.yaml
executable file
·185 lines (176 loc) · 5.66 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
## Gitea image
## ref: https://hub.docker.com/r/gitea/gitea/tags/
##
images:
gitea: gitea/gitea:1.12.4
postgres: "postgres:11"
memcached: "memcached:1.5.19-alpine"
imagePullPolicy: Always
## Specify imagePullSecrets
## ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
##
# imagePullSecrets: myregistrykey
## cache settings
memcached:
maxItemMemory: 64
verbosity: v
extendedOptions: modern
## ingress settings - Optional
ingress:
enabled: false
## sets .ini PROTOCOL value
# protocol: https
## annotations used by the ingress - ex for k8s nginx ingress controller:
# ingress_annotations:
# kubernetes.io/ingress.class: nginx
# nginx.ingress.kubernetes.io/proxy-body-size: "0"
# nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
# nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
## tls support for the ingress
# tls:
# - secretName: <TLS_SECRET>
# hosts:
# - 'git.example.com'
## chart defaults to using an ingress for http, but change to LoadBalancer if using you cluster supports it
service:
http:
serviceType: ClusterIP
port: 3000
# nodePort: 30280
# sometimes if is necesary to access through an external port i.e. http(s)://<dns-name>:<external-port>
# externalPort: 8280
# externalHost: git.example.com
# some parts of gitea like the api use a redirect needs config if using non standard ports
# httpAPIPort: 8280
# if serviceType is LoadBalancer
# loadBalancerIP: "192.168.0.100"
# svc_annotations:
# service.beta.kubernetes.io/azure-load-balancer-internal: "true"
# service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "a_subnet"
ssh:
serviceType: ClusterIP
port: 22
# nodePort: 30222
# if serving on a different external port used for determining the ssh url in the gui
# externalPort: 8022
# externalHost: git.example.com
# if serviceType is LoadBalancer
# loadBalancerIP: "192.168.0.100"
# svc_annotations:
# service.beta.kubernetes.io/azure-load-balancer-internal: "true"
# service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "a_subnet"
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
gitea:
requests:
memory: 500Mi
cpu: 1000m
limits:
memory: 2Gi
cpu: 1
postgres:
requests:
memory: 200Mi
cpu: 200m
limits:
memory: 2Gi
cpu: 1
memcached:
requests:
memory: 64Mi
cpu: 50m
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
## ref:
##
persistence:
enabled: false
# existingGiteaClaim: gitea-gitea
# existingPostgresClaim: gitea-postgres
giteaSize: 10Gi
postgresSize: 5Gi
# storageClass: glusterfs
accessMode: ReadWriteMany
## addtional annotations for hte pvcs uncommenting below will prevent helm from deleting the pvc when hte chart is deleted
# annotations:
# "helm.sh/resource-policy": keep
## if you want to mount a volume directly without using a storageClass or pvcs
# directGiteaVolumeMount:
# glusterfs:
# endpoints: "192.168.1.1 192.168.1.2 192.168.1.3"
# path: giteaData
# directPostgresVolumeMount:
# glusterfs:
# endpoints: "192.168.1.1 192.168.1.2 192.168.1.3"
# path: giteaPostgresData
# Connect to an external database
# externalDB:
# dbUser: "postgres"
# dbPassword: "<MY_PASSWORD>"
# dbHost: "service-name.namespace.svc.cluster.local" # or some external host
# dbPort: "5432"
# dbDatabase: "gitea"
# valid types: postgres, mysql, mssql, sqllite
dbType: "postgres"
useInPodPostgres: true
inPodPostgres:
secret: postgresecrets
subPath: "postgresql-db"
dataMountPath: /var/lib/postgresql/data/pgdata
# Create a database user
# Default: postgres
# postgresUser:
# Default: random 10 character string
# postgresPassword:
# Inject postgresPassword via a volume mount instead of environment variable
usePasswordFile: false
# Use Existing secret instead of creating one
# It must have a postgres-password key containing the desired password
# existingSecret: 'secret'
# Create a database
# Default: the postgres user
postgresDatabase: gitea
# Specify initdb arguments, e.g. --data-checksums
# ref: https://github.com/docker-library/docs/blob/master/postgres/content.md#postgres_initdb_args
# ref: https://www.postgresql.org/docs/current/static/app-initdb.html
# postgresInitdbArgs:
## Specify runtime config parameters as a dict, using camelCase, e.g.
## {"sharedBuffers": "500MB"}
## ref: https://www.postgresql.org/docs/current/static/runtime-config.html
# postgresConfig:
# Node labels and tolerations for pod assignment
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
nodeSelector: {}
tolerations: []
affinity: {}
## Annotations for the deployment and nodes.
deploymentAnnotations: {}
podAnnotations: {}
# In order to disable initial install screen you must have secretKey and disableInstaller=true
config:
# secretKey: define_your_secret
disableInstaller: false
offlineMode: false
requireSignin: false
disableRegistration: false
openidSignin: true
notifyMail: false
mailer:
enabled: false
host: smtp.gmail.com
port: 587
tls: false
from: ""
user: ""
passwd: ""
metrics:
enabled: false
token: ""
# Here you can set extra settings from https://docs.gitea.io/en-us/config-cheat-sheet/
# The following is just an example
# extra_config: |-
# [service]
# ENABLE_USER_HEATMAP=false