-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvalues.yaml
284 lines (260 loc) · 7.8 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
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
ctfd:
image:
# -- repository link to the CTFd docker image
repository: ghcr.io/ctfd/ctfd
# -- image pull policy. One of Always, Never, IfNotPresent
pullPolicy: IfNotPresent
# -- CTFd image tag (check https://github.com/CTFd/CTFd/pkgs/container/ctfd)
# @default -- `latest`
tag: "latest"
# -- Image pull secrets (use this for private repos)
imagePullSecrets: []
# -- CTFd replica count (If autoscaling is enabled, this value is ignored)
replicaCount: 2
# custom scaling metrics should be considered like the Req/sec and # of sessions, etc.
autoscaling:
# -- Enables HPA autoscaling
enabled: true
# -- Autoscaling min replicas
minReplicas: 2
# -- Autoscaling max replicas
maxReplicas: 10
# -- Autoscaling target CPU utilization percentage
targetCPUUtilizationPercentage: 80
# -- Autoscaling target memory utilization percentage
targetMemoryUtilizationPercentage: 80
resources:
limits:
# -- CTFd pod CPU limit
cpu: "2"
# -- CTFd pod memory limit
memory: 2Gi
requests:
# -- CTFd pod CPU request
cpu: "1"
# -- CTFd pod memory request
memory: 1Gi
# Default env variables (non exhaustive). Refer to CTFd documentation for more
# No need to set SECRET_KEY, its generated automatically
# @ignored
env:
- name: WORKERS
value: "2" # let HPA handle autoscaling instead of increasing workers inside the same pod
- name: ACCESS_LOG
value: "-"
- name: ERROR_LOG
value: "-"
- name: REVERSE_PROXY
value: "true"
- name: LOG_FOLDER
value: "/var/log/CTFd"
- name: UPLOAD_PROVIDER
value: "s3" # The chart only supports S3
uploadprovider:
s3:
# -- AWS S3 bucket name
bucket: "" # external bucket (you should disable SeaweedFS. See below)
# -- AWS S3 bucket region
endpoint_url: ""
# -- AWS S3 bucket access key
secret_access_key: ""
# -- AWS S3 bucket secret key id
access_key_id: ""
ingress:
# -- Enables ingress
enabled: true
# -- Ingress class
className: ""
# -- Ingress annotations
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# @ignored
hosts:
- host: ctfd.example.com
paths:
- path: /
pathType: ImplementationSpecific
# @ignored
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
updateStrategy:
# -- CTFd update strategy rolling update max surge (extra pods during rolling update)
maxSurge: 2
# -- CTFd update strategy rolling update max unavailable pods count
maxUnavailable: 25%
pdb:
# -- Deploy a [PodDisruptionBudget] for the application controller
enabled: true
# -- Number of pods that are available after eviction as number or percentage (eg.: 50%)
# @default -- `""` (defaults to 0 if not specified)
minAvailable: ""
# -- Number of pods that are unavailable after eviction as number or percentage (eg.: 50%).
## Has higher precedence over `controller.pdb.minAvailable`
maxUnavailable: "50%"
# @ignored
service:
type: ClusterIP
port: 8000
# CTFd security context
# @default -- Check `values.yaml`. Runs as CTFd user
securityContext:
runAsNonRoot: true
runAsUser: 1001
# -- CTFd readiness probe
# @default -- Check `values.yaml`
livenessProbe:
httpGet:
path: /healthcheck
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
# -- CTFd readiness probe
# @default -- Check `values.yaml`
readinessProbe:
httpGet:
path: /healthcheck
port: http
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
initContainers: []
# -- Chart name override
nameOverride: ""
# -- Chart fullname override
fullnameOverride: ""
# -- CTFd node selector
nodeSelector: {}
# -- CTFd tolerations
tolerations: []
# -- CTFd affinity
affinity: {}
# -- CTFd pod annotations
podAnnotations: {}
# -- CTFd pod labels
podLabels: {}
# -- CTFd pod security context
podSecurityContext: {}
# -- CTFd volumes
volumes: []
# -- CTFd volumeMounts
volumeMounts: []
serviceAccount:
# Specifies whether a service account should be created
# -- creates a CTFd service account
create: true
# Automatically mount a ServiceAccount's API credentials?
# -- CTFd service account mount API credentials
automount: true
# Annotations to add to the service account
# -- CTFd service account annotations
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
# -- CTFd service account name
name: ""
# Override the mariadb subchart values
mariadb-galera:
# -- Deploys bitnami's mariadb-galera (set to false if you want to use an external database)
enabled: true
db:
user: ctfd
password: ctfd
name: ctfd
galera:
mariabackup:
password: ctfd
rootUser:
password: ctfd
resourcesPreset: large
persistence:
enabled: true
size: 2Gi
# -- MariaDB primary entrypoint extra flags
# @default -- Check `values.yaml`. Used by official CTFd `docker-compose.yml`
extraFlags: "--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --wait_timeout=28800 --log-warnings=0"
metrics:
enabled: true # prometheus metrics exporter
# -- External database connection details. Takes effect if `mariadb.enabled` is set to false
# @default -- ignored
external:
port: 3306
host: external-mariadb-host
username: ""
password: ""
database: ""
# Override the redis subchart values (I am considering the switch from redis to redis-ha)
redis:
# -- Deploys bitnami's redis (set to false if you want to use an external cache)
enabled: true # set to false if you want to use an external redis
# -- External redis cache connection details. Takes effect if `redis.enabled` is set to false
# @default -- ignored
external:
port: 6379
host: external-redis-host
username: ""
password: ""
volumePermissions:
enabled: true # set to false if you want to manage the permissions yourself
sysctl:
enabled: true
auth:
enabled: false
master:
count: 1 # higher values are experimental
# -- Check Bintami's documentation
resourcesPreset: micro
persistence:
enabled: false
replica:
autoscaling:
enabled: true
targetCPU: "80"
persistence:
enabled: false
# -- Check Bintami's documentation
resourcesPreset: micro
metrics:
enabled: true # prometheus metrics exporter
# Override the seaweedfs subchart values
seaweedfs:
# -- Deploys seaweedfs (set to false if you want to use an bucket)
enabled: true # set to false if you want to use an external bucket
master:
# -- seaweedfs-master replicas
replicas: 1
data:
# -- seaweedfs data storage type
type: "persistentVolumeClaim"
# -- seaweedfs storage size
size: 5Gi
volume:
# -- seaweedfs-volume replicas
replicas: 1
filer:
# -- seaweedfs-filer replicas
replicas: 1
# -- seaweedfs-filer enable PVC for data persistence
enablePVC: true
# -- seaweedfs-filer PVC storage size
storage: 5Gi
data:
# -- seaweedfs-filer data storage type
type: "persistentVolumeClaim"
# -- seaweedfs-filer storage size
size: 5Gi
s3:
# -- seaweedfs-s3 enable. This enables S3 API (Should be left to `true`)
enabled: true
# -- seaweedfs-s3 enable authentication (no need since seaweed is private to the cluster)
enableAuth: false
# -- seaweedfs-s3 create bucket upon deploying
createBuckets:
- name: ctfd-bucket