forked from woodpecker-ci/helm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
357 lines (311 loc) · 10.9 KB
/
values.yaml
File metadata and controls
357 lines (311 loc) · 10.9 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
# Default values for woodpecker.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# -- Overrides the name of the chart
nameOverride: ''
# -- Overrides the full name of the chart
fullnameOverride: ''
agent:
# -- Enable the agent component
enabled: true
# -- The number of replicas for the deployment
replicaCount: 2
image:
# -- The image registry
registry: docker.io
# -- The image repository
repository: woodpeckerci/woodpecker-agent
# -- The pull policy for the image
pullPolicy: IfNotPresent
# -- Overrides the image tag whose default is the chart appVersion.
tag: ''
env:
WOODPECKER_SERVER: 'woodpecker-server:9000'
WOODPECKER_BACKEND: kubernetes
WOODPECKER_BACKEND_K8S_NAMESPACE: woodpecker
WOODPECKER_BACKEND_K8S_NAMESPACE_PER_ORGANIZATION: false
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: ''
WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 10G
WOODPECKER_BACKEND_K8S_STORAGE_RWX: true
WOODPECKER_BACKEND_K8S_POD_LABELS: ''
WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS: ''
WOODPECKER_CONNECT_RETRY_COUNT: '1'
# WOODPECKER_DATABASE_DATASOURCE:
# valueFrom:
# secretKeyRef:
# name: woodpecker-database-secret
# key: datasource
# -- Add extra secret that is contains environment variables
extraSecretNamesForEnvFrom: []
persistence:
# -- Enable the creation of the persistent volume
enabled: true
# -- Defines an existing claim to use
existingClaim:
# -- Defines the size of the persistent volume
size: 1Gi
# -- Defines the path where the volume should be mounted
mountPath: '/etc/woodpecker'
# -- Defines the storageClass of the persistent volume
storageClass: ''
# -- Defines the access mode of the persistent volume
accessModes:
- ReadWriteOnce
# -- Additional volumes that can be mounted in containers
extraVolumes:
[]
# - name: docker-config
# configMap:
# name: docker-config
# - name: data-volume
# persistentVolumeClaim:
# claimName: example
# -- Additional volumes that will be attached to the agent container
extraVolumeMounts:
[]
# - name: ca-certs
# mountPath: /etc/ssl/certs/ca-certificates.crt
# -- The image pull secrets
imagePullSecrets: []
# -- Overrides the name of the chart of the agent component
nameOverride: ''
# -- Overrides the full name of the chart of the agent component
fullnameOverride: ''
serviceAccount:
# -- Specifies whether a service account should be created (also see RBAC subsection)
create: true
# -- Annotations to add to the service account
annotations: {}
# -- The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ''
rbac:
# -- If your cluster has RBAC enabled and you're using the Kubernetes agent-
# backend you'll need this. (this is true for almost all production clusters)
# only change this if you have a non CNCF compliant cluster, missing the RBAC endpoints
# the Role and RoleBinding are only created if serviceAccount.create is also true
create: true
# Additional annotations and labels in role and roleBinding are only needed, if you
# are using additional tooling to manage / verify roles or roleBindings (OPA, etc.)
role:
annotations: {}
labels: {}
roleBinding:
annotations: {}
labels: {}
# -- Add pod annotations for the agent component
podAnnotations: {}
# -- Add pod security context
podSecurityContext:
{}
# fsGroup: 2000
# -- Add security context
securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# -- Specifies the resources for the agent component
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# -- Specifies the labels of the nodes that the agent component must be running
nodeSelector: {}
# -- Specifies the tolerations
tolerations: []
# -- Specifies the affinity
affinity: {}
# -- Overrides the default DNS configuration
dnsConfig: {}
# -- Using topology spread constraints, you can ensure that there is at least one agent
# pod for each topology zone, e.g. one per arch for multi-architecture clusters
# or one for each region for geographically distributed cloud-hosted clusters.
# Ref: <https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/>
topologySpreadConstraints: []
# - maxSkew: 1
# topologyKey: "beta.kubernetes.io/arch"
# whenUnsatisfiable: "DoNotSchedule"
# labelSelector:
# matchLabels:
# "app.kubernetes.io/name": woodpecker-agent
server:
# -- Enable the server component
enabled: true
statefulSet:
# -- Add annotations to the StatefulSet
annotations: {}
# -- Add labels to the StatefulSet
labels: {}
# -- Defines the number of replicas
replicaCount: 1
# -- The maximum number of revisions that will be maintained in the StatefulSet's revision history
# Default in 10.
revisionHistoryLimit: 5
updateStrategy:
# -- Defines the update strategy of the StatefulSet
type: RollingUpdate
image:
# -- The image registry
registry: docker.io
# -- The image repository
repository: woodpeckerci/woodpecker-server
# -- The image pull policy
pullPolicy: IfNotPresent
# -- Overrides the image tag whose default is the chart appVersion.
tag: ''
# -- Add environment variables for the server component
env:
WOODPECKER_ADMIN: 'woodpecker,admin'
WOODPECKER_HOST: 'https://xxxxxxx'
# WOODPECKER_GITHUB: "true"
# -- Add extra environment variables from the secrets list
extraSecretNamesForEnvFrom: []
# whether to create the default WOODPECKER_AGENT_SECRET in woodpecker-default-agent-secret
createAgentSecret: true
# -- Create a generic secret to store things in, e.g. env values
secrets: []
# - name: secret
# data:
# key: value
# -- Additional volumes that can be mounted in containers
extraVolumes:
[]
# - name: docker-config
# configMap:
# name: docker-config
# - name: data-volume
# persistentVolumeClaim:
# claimName: example
# -- Additional volumes that will be attached to the agent container
extraVolumeMounts:
[]
# - name: ca-certs
# mountPath: /etc/ssl/certs/ca-certificates.crt
# -- Add additional init containers to the pod (evaluated as a template)
initContainers: []
persistentVolume:
# -- Enable the creation of the persistent volume
enabled: true
# -- Defines the size of the persistent volume
size: 10Gi
# -- Defines the path where the volume should be mounted
mountPath: '/var/lib/woodpecker'
# -- Defines the storageClass of the persistent volume
storageClass: ''
# -- The image pull secrets
imagePullSecrets: []
# -- Overrides the name of the helm chart of the server component
nameOverride: ''
# -- Overrides the full name of the helm chart of the server component
fullnameOverride: ''
serviceAccount:
# -- Specifies whether a service account should be created
create: false
# -- Annotations to add to the service account
annotations: {}
# -- The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ''
# -- Add pod annotations
podAnnotations:
{}
# prometheus.io/scrape: "true"
# -- Add pod security context
podSecurityContext:
{}
# fsGroup: 2000
# -- Add security context
securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
# -- The type of the service
type: ClusterIP
# -- The port of the service
port: &servicePort 80
# -- The cluster IP of the service (optional)
clusterIP:
# -- The loadbalancer IP of the service (optional)
loadBalancerIP:
ingress:
# -- Enable the ingress for the server component
enabled: false
# -- Add annotations to the ingress
annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Defines which ingress controller will implement the resource
ingressClassName: ''
hosts:
- host: chart-example.local
paths:
- path: /
backend:
serviceName: chart-example.local
servicePort: *servicePort
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
# -- Specifies the ressources for the server component
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# -- Defines the labels of the node where the server component must be running
nodeSelector: {}
# -- Add tolerations rules
tolerations: []
# -- Add affinity
affinity: {}
# -- Overrides the default DNS configuration
dnsConfig: {}
# -- Configure probe options for container health checking
probes:
# -- Configure liveness probe options
liveness:
# -- Number of seconds after which the probe times out (default: 10)
timeoutSeconds: 10
# -- How often (in seconds) to perform the probe (default: 10)
periodSeconds: 10
# -- Minimum consecutive successes for the probe to be considered successful after having failed (default: 1)
successThreshold: 1
# -- When a probe fails, Kubernetes will try failureThreshold times before giving up (default: 3)
failureThreshold: 3
# -- Configure readiness probe options
readiness:
# -- Number of seconds after which the probe times out (default: 10)
timeoutSeconds: 10
# -- How often (in seconds) to perform the probe (default: 10)
periodSeconds: 10
# -- Minimum consecutive successes for the probe to be considered successful after having failed (default: 1)
successThreshold: 1
# -- When a probe fails, Kubernetes will try failureThreshold times before giving up (default: 3)
failureThreshold: 3
# -- Allow adding additional custom kubernets objects
additionalObjects: []