-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
447 lines (401 loc) · 10.3 KB
/
Copy pathvalues.yaml
File metadata and controls
447 lines (401 loc) · 10.3 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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
# -- Global section contains configuration options that are applied to all services
global:
# -- Specifies the registry to pull images from. Leave empty for the default registry
imageRegistry: ""
# -- Specifies the secrets to use for pulling images from private registries
imagePullSecrets: []
# -- String to fully override self-learning-platform.fullname template
fullnameOverride: ""
# -- String to partially override self-learning-platform.fullname template
nameOverride: ""
# -- Number of replicas for the service
replicaCount: 2
# -- Image registry configuration
image:
# -- Repository of the image
repository: devopsiaci/self-learning-platform
# -- Pull policy for the image
pullPolicy: IfNotPresent
# -- Overrides the image tag whose default is the chart appVersion
tag: ""
# -- Specifies the secrets to use for pulling images from private registries
imagePullSecrets: []
# -- Configure deployment strategy
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
# -- ServiceAccount configuration
serviceAccount:
# -- Specifies whether a service account should be created
create: true
# -- Annotations to add to the service account
annotations: {}
# -- Name of the service account to use
name: ""
# -- Disable automatic mounting of service account token
automountServiceAccountToken: false
# -- Environment variables to configure application
env:
NODE_ENV: production
PORT: "3000"
HOST: "0.0.0.0"
# BASE_URL: https://learning.example.com
# SESSION_SECRET: "" # REQUIRED: Generate with: openssl rand -base64 32
# SESSION_TTL: "604800" # 7 days
# DB_URL: /app/data/learning-platform.db
# ADMIN_EMAIL: admin@devopslab.local
# ADMIN_PASSWORD: "" # REQUIRED: Set strong password
# AUTH_ANONYMOUS_ENABLED: "true"
# AUTH_EMAIL_ENABLED: "true"
# TOTP_ISSUER: "DevOps Learning Platform"
# NEXT_PUBLIC_REGISTRATION_ENABLED: "true"
# NEXT_PUBLIC_DEMO_MODE: "false"
# OAuth Google
# OAUTH_GOOGLE_CLIENT_ID: ""
# OAUTH_GOOGLE_CLIENT_SECRET: ""
# OAUTH_GOOGLE_CALLBACK: /api/auth/oauth/google/callback
# OAuth GitHub
# OAUTH_GITHUB_CLIENT_ID: ""
# OAUTH_GITHUB_CLIENT_SECRET: ""
# OAUTH_GITHUB_CALLBACK: /api/auth/oauth/github/callback
# OAuth Azure
# OAUTH_AZURE_CLIENT_ID: ""
# OAUTH_AZURE_CLIENT_SECRET: ""
# OAUTH_AZURE_TENANT: common
# OAUTH_AZURE_CALLBACK: /api/auth/oauth/azure/callback
# SMTP Configuration
# SMTP_HOST: ""
# SMTP_PORT: "587"
# SMTP_USER: ""
# SMTP_PASS: ""
# SMTP_FROM: noreply@devopslab.local
# SMTP_SECURE: "false"
# -- Variables from configMap
envFromConfigMap: {}
# MY_VARIABLE:
# name: <name-configmap>
# key: key
# -- Variables from secrets
envFromSecrets: {}
# MY_VARIABLE:
# name: <name-secret>
# key: secret_key
# -- Load all variables from files
envFromFiles: []
# - secretRef:
# name: <name-secret>
# - configMapRef:
# name: <name-configmap>
# -- Secrets values to create credentials
secrets: []
# - name: secret-name
# data:
# my.key: |-
# my-content
# my_var: my-value
# -- ConfigMap values to create configuration files
configMaps: []
# - name: configmap-name
# data:
# my.key: |-
# my-content
# my_var: my-value
# -- Configure init containers
initContainers: []
# - name: init-container
# image: busybox
# command: ['sh', '-c', 'echo "Initializing..."']
# -- Configure container args
args: []
# -- Configure container command
command: []
# -- Kubernetes service configuration
service:
# -- Service type
type: ClusterIP
# -- Service port
port: 80
# -- Pod target port
targetPort: 3000
# -- Protocol for the service port
protocol: TCP
# -- Name for the service port
portName: http
# -- Application protocol
appProtocol: HTTP
# -- Additional labels for the service
labels: {}
# -- Annotations for the service
annotations: {}
# -- Extra service ports
extraPorts: []
# - name: metrics
# port: 9090
# targetPort: 9090
# protocol: TCP
# appProtocol: HTTP
# -- NetworkPolicy configuration
networkPolicy:
# -- Enable or disable NetworkPolicy
enabled: false
# -- Policy types
policyTypes: []
# - Ingress
# - Egress
ingress: []
# - from:
# - namespaceSelector:
# matchLabels:
# name: ingress-nginx
# ports:
# - protocol: TCP
# port: 8080
egress: []
# - to:
# - namespaceSelector: {}
# ports:
# - protocol: TCP
# port: 443
# -- ServiceMonitor for Prometheus Operator
serviceMonitor:
# -- Enable ServiceMonitor
enabled: false
# -- Scrape interval
interval: 30s
# -- Scrape timeout
scrapeTimeout: 10s
# -- Metric relabeling
metricRelabelings: []
# -- Relabeling
relabelings: []
# -- Lifecycle hooks
lifecycle: {}
# preStop:
# exec:
# command: ["sh", "-c", "sleep 10"]
# -- Termination grace period in seconds
terminationGracePeriodSeconds: 30
# -- Liveness probe configuration
livenessProbe:
enabled: true
httpGet:
path: /healthz
port: http
initialDelaySeconds: 15
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
# -- Custom liveness probe
livenessProbeCustom: {}
# -- Readiness probe configuration
readinessProbe:
enabled: true
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1
# -- Custom readiness probe
readinessProbeCustom: {}
# -- Startup probe configuration
startupProbe:
enabled: true
httpGet:
path: /healthz
port: http
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 30
successThreshold: 1
# -- Custom startup probe
startupProbeCustom: {}
# -- Pod annotations
podAnnotations: {}
# -- Pod labels
podLabels: {}
# -- Pod security context
podSecurityContext:
fsGroup: 1000
seccompProfile:
type: RuntimeDefault
# -- Container security context
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
allowPrivilegeEscalation: false
# -- Ingress configuration
ingress:
enabled: false
className: ""
annotations: {}
# cert-manager.io/cluster-issuer: letsencrypt-prod
# nginx.ingress.kubernetes.io/ssl-redirect: "true"
hosts:
- host: self-learning-platform.local
paths:
- path: /
pathType: Prefix
tls: []
# - secretName: self-learning-platform-tls
# hosts:
# - self-learning-platform.local
# -- Gateway API configuration (Gateway + HTTPRoute resources)
# </br> Ref: https://gateway-api.sigs.k8s.io/
# </br> Requires Gateway API CRDs installed in the cluster.
# </br> TLS is configured at the Gateway listener level, not the HTTPRoute.
gateway:
enabled: false
# -- Set to true to let the chart create and manage the Gateway resource.
# -- Set to false to attach to a pre-existing Gateway via parentRefs.
create: false
# -- GatewayClass name — required when create is true
className: ""
# -- Gateway listeners — used only when create is true
listeners:
- name: http
protocol: HTTP
port: 80
# -- References to parent Gateway resources.
# -- Ignored when create is true (auto-wired to the chart-managed Gateway).
parentRefs:
- name: ""
namespace: ""
# sectionName: ""
# -- Hostnames to match (leave empty to match all hostnames)
hostnames: []
# - self-learning-platform.local
# -- Route rules (backendRefs are auto-generated from service config)
rules:
- matches:
- path:
type: PathPrefix
value: /
# -- Additional request/response filters
filters: []
# -- Additional labels for the HTTPRoute
labels: {}
# -- Annotations for the HTTPRoute
annotations: {}
# -- Resource limits and requests
resources:
requests:
cpu: "200m"
memory: "512Mi"
limits:
memory: "1Gi"
# -- Pod Disruption Budget
podDisruptionBudget:
enabled: false
maxUnavailable: 1
# minAvailable: 1
# -- Horizontal Pod Autoscaler
autoscaling:
enabled: false
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
# -- HPA scaling behavior
behavior:
scaleDown:
stabilizationWindowSeconds: 300
policies:
- type: Percent
value: 50
periodSeconds: 15
- type: Pods
value: 1
periodSeconds: 60
selectPolicy: Min
scaleUp:
stabilizationWindowSeconds: 0
policies:
- type: Percent
value: 100
periodSeconds: 15
- type: Pods
value: 2
periodSeconds: 60
selectPolicy: Max
# -- Additional volumes
volumes:
- name: tmp
emptyDir: {}
- name: data
emptyDir: {}
# For production with persistence, use PVC:
# - name: data
# persistentVolumeClaim:
# claimName: self-learning-platform-data
# -- Additional volume mounts
volumeMounts:
- name: tmp
mountPath: /tmp
- name: data
mountPath: /app/data
# -- Persistence configuration for SQLite database
persistence:
# -- Enable persistent volume for database
enabled: false
# -- Storage class name
storageClassName: ""
# -- Access mode
accessMode: ReadWriteOnce
# -- Storage size
size: 1Gi
# -- Annotations for PVC
annotations: {}
# -- Use existing PVC
existingClaim: ""
# -- Node selector
nodeSelector: {}
# -- Tolerations
tolerations: []
# -- Affinity rules
affinity: {}
# -- Topology spread constraints
topologySpreadConstraints: []
# - maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule
# - maxSkew: 1
# topologyKey: kubernetes.io/hostname
# whenUnsatisfiable: ScheduleAnyway
# -- DNS configuration
dnsConfig: {}
# nameservers:
# - 1.1.1.1
# searches:
# - ns1.svc.cluster.local
# options:
# - name: ndots
# value: "2"
# -- DNS policy
dnsPolicy: ClusterFirst
# -- Init job configuration (runs db:seed on install/upgrade)
initJob:
# -- Enable init job
enabled: true
# -- Seconds after job finishes before deletion
ttlSecondsAfterFinished: 300
# -- Number of retries before marking job as failed
backoffLimit: 3
# -- Resource limits for init job
resources:
requests:
cpu: "100m"
memory: "256Mi"
limits:
memory: "512Mi"