-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhelmfile.yaml
845 lines (845 loc) · 24.4 KB
/
helmfile.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
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
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
environments:
default:
values:
- storage:
# The volume to use for storing state across all applications.
stateVolume:
existingClaim:
hostPath:
size: 10Gi
# The volume to use for storing user files.
filesVolume:
existingClaim:
hostPath:
size: 10Gi
# Optionally set to arm64.
- architecture:
- ingress:
host: {{ requiredEnv "KNOT_HOST" }}
# Skip creating the ingress service here - you still need to create it in the "ingress-nginx" namespace.
skip: false
service:
type: LoadBalancer
createSelfsignedCertificate: true
- jupyterHub:
enabled: true
clientSecret: FvxWxBTbhgQbo1sGbc6yLsza0Vwo6jZQBpiOSDYcghCjWWcpRzBygzJSQ8M4CunflPn9pCOr25vVnGr0N2ytR6FjklSesc28BqkHSM6aVIYA5RKFZaOpiMj9Ghc5VDfN
- argo:
enabled: true
clientSecret: 6TjANPj1oe59MexsTYdMV5yiSyOYULDEzkyxfff4CmAPFa8mQ1dhYE7BHeEEVyg1tRgTkXRWYj2zhiKLiLZvhUGDnrixQQDshrWVtWCgQX23Vmdo37ktuVmsgOEfO2eG
- harbor:
enabled: true
adminPassword: Harbor12345
secretKey: 4sdcg3urQQd00vHU
clientSecret: rgRQVzfZnoU9WAOqfni5hyC0bXZHjKPyLKOCUVfmBBWbVdaMRQfuep7lPKDjef5bZDxYc4OpiVjGMpXuRye872ATHejjMRKvfPAOA482uh2SjpwmIKUBigBZaVKFkYF3
- grafana:
enabled: true
clientSecret: eYLaIV2NtZHhR7M9zh1ouLl4LpuwwpcrYBspXbS2gTCm61Hn01ghmZf7iBxxk5r3SdPHnlg6Ovm6IKK4CmJKNl8gnkvxjmOt7YOxZJR0BJH8DPHnA9Nh6pHpmESM8mfE
- knot:
# Forward requests for development.
developmentURL:
# Use local chart and image.
localImage: false
---
repositories:
{{- if not (and .Values.storage.stateVolume.hostPath .Values.storage.filesVolume.hostPath) }}
- name: csi-driver-nfs
url: https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts
{{- end }}
- name: cert-manager
url: https://charts.jetstack.io
{{- if not .Values.ingress.skip }}
- name: ingress-nginx
url: https://kubernetes.github.io/ingress-nginx
{{- end }}
- name: bedag
url: https://bedag.github.io/helm-charts
{{- if and .Values.ingress.createSelfsignedCertificate (or .Values.argo.enabled .Values.harbor.enabled) }}
- name: emberstack
url: https://emberstack.github.io/helm-charts
{{- end }}
{{- if .Values.jupyterHub.enabled }}
- name: jupyterhub
url: https://jupyterhub.github.io/helm-chart/
{{- end }}
{{- if .Values.argo.enabled }}
- name: argo
url: https://argoproj.github.io/argo-helm
{{- end }}
{{- if .Values.harbor.enabled }}
- name: harbor
url: https://helm.goharbor.io
{{- end }}
{{- if .Values.grafana.enabled }}
- name: prometheus-community
url: https://prometheus-community.github.io/helm-charts
{{- end }}
{{- if not .Values.knot.localImage }}
- name: knot
url: https://carv-ics-forth.github.io/knot/chart
{{- end }}
releases:
{{- if not (and .Values.storage.stateVolume.hostPath .Values.storage.filesVolume.hostPath) }}
- name: csi-driver-nfs
namespace: csi-nfs
createNamespace: true
chart: csi-driver-nfs/csi-driver-nfs
version: v4.1.0
values:
- controller:
dnsPolicy: ClusterFirstWithHostNet
- node:
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- if not .Values.storage.stateVolume.hostPath }}
- name: nfs-server-state
namespace: nfs
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: v1
kind: Service
metadata:
name: nfs-server-state
spec:
ports:
- name: nfs
port: 2049
- name: mountd
port: 20048
- name: rpcbind
port: 111
selector:
app: nfs-server-state
- apiVersion: apps/v1
kind: Deployment
metadata:
name: nfs-server-state
spec:
replicas: 1
selector:
matchLabels:
app: nfs-server-state
template:
metadata:
labels:
app: nfs-server-state
spec:
containers:
- name: nfs-server-state
image: gcr.io/google_containers/volume-nfs:0.8
ports:
- name: nfs
containerPort: 2049
- name: mountd
containerPort: 20048
- name: rpcbind
containerPort: 111
securityContext:
privileged: true
volumeMounts:
- mountPath: /exports
name: nfs-server-state-disk
volumes:
- name: nfs-server-state-disk
persistentVolumeClaim:
{{- if .Values.storage.stateVolume.existingClaim }}
claimName: {{ .Values.storage.stateVolume.existingClaim }}
{{- else }}
claimName: knot-state-pvc
{{- end }}
- apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: nfs-state
provisioner: nfs.csi.k8s.io
parameters:
server: nfs-server-state.nfs.svc
share: /
subDir: ${pvc.metadata.name}
reclaimPolicy: Delete
volumeBindingMode: Immediate
mountOptions:
- nfsvers=4.1
{{- if not .Values.storage.stateVolume.existingClaim }}
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: knot-state-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.storage.stateVolume.size }}
{{- end }}
{{- end }}
{{- if not .Values.storage.filesVolume.hostPath }}
- name: nfs-server-files
namespace: nfs
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: v1
kind: Service
metadata:
name: nfs-server-files
spec:
ports:
- name: nfs
port: 2049
- name: mountd
port: 20048
- name: rpcbind
port: 111
selector:
app: nfs-server-files
- apiVersion: apps/v1
kind: Deployment
metadata:
name: nfs-server-files
spec:
replicas: 1
selector:
matchLabels:
app: nfs-server-files
template:
metadata:
labels:
app: nfs-server-files
spec:
containers:
- name: nfs-server-files
image: gcr.io/google_containers/volume-nfs:0.8
ports:
- name: nfs
containerPort: 2049
- name: mountd
containerPort: 20048
- name: rpcbind
containerPort: 111
securityContext:
privileged: true
volumeMounts:
- mountPath: /exports
name: nfs-server-files-disk
volumes:
- name: nfs-server-files-disk
persistentVolumeClaim:
{{- if .Values.storage.filesVolume.existingClaim }}
claimName: {{ .Values.storage.filesVolume.existingClaim }}
{{- else }}
claimName: knot-files-pvc
{{- end }}
{{- if not .Values.storage.filesVolume.existingClaim }}
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: knot-files-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.storage.filesVolume.size }}
{{- end }}
{{- end }}
- name: cert-manager
namespace: cert-manager
createNamespace: true
chart: cert-manager/cert-manager
version: 1.13.0
values:
- installCRDs: true
{{- if not .Values.ingress.skip }}
- name: ingress
namespace: ingress-nginx
createNamespace: true
chart: ingress-nginx/ingress-nginx
version: 4.8.0
values:
- controller:
watchIngressWithoutClass: true
ingressClassResource:
default: true
allowSnippetAnnotations: true
service:
{{- if eq .Values.ingress.service.type "NodePort" }}
type: NodePort
externalIPs:
{{ toYaml .Values.ingress.service.externalIPs | nindent 8 }}
{{- if sprigGet .Values.ingress.service "nodePorts" }}
nodePorts:
{{ toYaml .Values.ingress.service.nodePorts | nindent 10 }}
{{- end }}
{{- else }}
annotations:
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
service.beta.kubernetes.io/aws-load-balancer-type: nlb
{{- end }}
admissionWebhooks:
enabled: false
extraArgs:
default-ssl-certificate: ingress-nginx/ssl-certificate
{{- end }}
{{- if .Values.ingress.createSelfsignedCertificate }}
- name: reflector
namespace: reflector
createNamespace: true
chart: emberstack/reflector
version: 7.1.203
- name: ingress-cert
namespace: ingress-nginx
createNamespace: true
chart: bedag/raw
version: 2.0.0
needs:
- cert-manager/cert-manager
values:
- resources:
- apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: selfsigned
spec:
selfSigned: {}
- apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ssl-certificate
spec:
secretName: ssl-certificate
secretTemplate:
annotations:
"reflector.v1.k8s.emberstack.com/reflection-allowed": "true"
"reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces": "knot,argo,harbor"
"reflector.v1.k8s.emberstack.com/reflection-auto-enabled": "true"
"reflector.v1.k8s.emberstack.com/reflection-auto-namespaces": "knot,argo,harbor"
duration: 87600h
commonName: {{ .Values.ingress.host }}
dnsNames:
- "{{ .Values.ingress.host }}"
- "*.{{ .Values.ingress.host }}"
privateKey:
algorithm: RSA
size: 2048
issuerRef:
name: selfsigned
{{- end }}
{{- if .Values.jupyterHub.enabled }}
- name: jupyterhub
namespace: jupyterhub
createNamespace: true
chart: jupyterhub/jupyterhub
version: 3.0.3
values:
- hub:
config:
JupyterHub:
authenticator_class: generic-oauth
Authenticator:
auto_login: true
GenericOAuthenticator:
allow_all: true
client_id: jupyterhub
client_secret: {{ .Values.jupyterHub.clientSecret }}
{{- if .Values.ingress.createSelfsignedCertificate }}
validate_server_cert: false
{{- end }}
oauth_callback_url: https://jupyterhub.{{ .Values.ingress.host }}/hub/oauth_callback
authorize_url: https://{{ .Values.ingress.host }}/oauth/authorize/
token_url: https://{{ .Values.ingress.host }}/oauth/token/
userdata_url: https://{{ .Values.ingress.host }}/oauth/userinfo/
scope:
- openid
- profile
- email
username_claim: preferred_username
extraConfig:
"myConfig.py": |-
c.ConfigurableHTTPProxy.api_url = "http://proxy-api.jupyterhub.svc:8001"
c.JupyterHub.hub_connect_url = "http://hub.jupyterhub.svc:8081"
c.KubeSpawner.enable_user_namespaces = True
c.KubeSpawner.user_namespace_template = "knot-{username}"
c.KubeSpawner.notebook_dir = "/private/notebooks"
c.KubeSpawner.args = ["--allow-root"]
networkPolicy:
enabled: false
db:
type: other
upgrade: true
url: sqlite:///jupyterhub.sqlite
extraVolumes:
- name: jupyterhub-volume
{{- if .Values.storage.stateVolume.hostPath }}
hostPath:
path: {{ .Values.storage.stateVolume.hostPath }}/jupyterhub
{{- else }}
persistentVolumeClaim:
claimName: jupyterhub-state-pvc
{{- end }}
extraVolumeMounts:
- name: jupyterhub-volume
mountPath: /srv/jupyterhub
- proxy:
service:
type: ClusterIP
chp:
networkPolicy:
enabled: false
- singleuser:
networkPolicy:
enabled: false
extraEnv:
GRANT_SUDO: "yes"
NOTEBOOK_ARGS: "--allow-root"
CONDA_ENVS_PATH: "/private/conda"
uid: 0
storage:
type: none
extraVolumes:
- name: shm-volume
emptyDir:
medium: Memory
extraVolumeMounts:
- name: shm-volume
mountPath: /dev/shm
{{- if sprigGet .Values.jupyterHub "singleuserExtra" }}
{{ toYaml .Values.jupyterHub.singleuserExtra | nindent 6 }}
{{- end }}
- prePuller:
hook:
enabled: false
continuous:
enabled: false
- scheduling:
userScheduler:
enabled: false
- ingress:
enabled: true
hosts:
- jupyterhub.{{ .Values.ingress.host }}
annotations:
"nginx.ingress.kubernetes.io/force-ssl-redirect": "true"
{{- if not .Values.storage.stateVolume.hostPath }}
- name: jupyterhub-state-pvc
namespace: jupyterhub
createNamespace: true
chart: bedag/raw
version: 2.0.0
needs:
- nfs/nfs-server-state
values:
- resources:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jupyterhub-state-pvc
spec:
storageClassName: nfs-state
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
{{- end }}
- name: jupyterhub-oauth-secret
namespace: jupyterhub
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: v1
kind: Secret
metadata:
name: knot-oauth-jupyterhub
type: Opaque
data:
client-id: {{ "jupyterhub" | b64enc }}
client-secret: {{ .Values.jupyterHub.clientSecret | b64enc }}
- name: jupyterhub-clusterrolebinding
namespace: jupyterhub
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: jupyterhub-cluster-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: hub
namespace: jupyterhub
{{- end }}
{{- if .Values.argo.enabled }}
- name: argo
namespace: argo
createNamespace: true
chart: argo/argo-workflows
version: 0.33.3
values:
- controller:
containerRuntimeExecutor: k8sapi
- server:
extraArgs:
- "--auth-mode=sso"
{{- if .Values.ingress.createSelfsignedCertificate }}
volumeMounts:
- name: ssl-certificate-volume
mountPath: /etc/ssl/certs/{{ .Values.ingress.host }}.crt
subPath: ca.crt
volumes:
- name: ssl-certificate-volume
secret:
secretName: ssl-certificate
{{- end }}
ingress:
enabled: true
hosts:
- argo.{{ .Values.ingress.host }}
annotations:
"nginx.ingress.kubernetes.io/force-ssl-redirect": "true"
sso:
enabled: true
issuer: https://{{ .Values.ingress.host }}/oauth
clientId:
name: knot-oauth-argo
key: client-id
clientSecret:
name: knot-oauth-argo
key: client-secret
redirectUrl: https://argo.{{ .Values.ingress.host }}/oauth2/callback
rbac:
enabled: true
- name: argo-oauth-secret
namespace: argo
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: v1
kind: Secret
metadata:
name: knot-oauth-argo
type: Opaque
data:
client-id: {{ "argo" | b64enc }}
client-secret: {{ .Values.argo.clientSecret | b64enc }}
- name: argo-clusterworkflowtemplates-clusterrolebinding
namespace: argo
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: argo-clusterworkflowtemplates-view
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: argo-argo-workflows-workflow-controller-cluster-template
subjects:
- kind: Group
name: system:serviceaccounts:argo
apiGroup: rbac.authorization.k8s.io
{{- end }}
{{- if .Values.harbor.enabled }}
- name: harbor
namespace: harbor
createNamespace: true
chart: harbor/harbor
version: 1.11.0
values:
- expose:
type: ingress
tls:
enabled: false
ingress:
hosts:
core: harbor.{{ .Values.ingress.host }}
annotations:
"nginx.ingress.kubernetes.io/force-ssl-redirect": "true"
- externalURL: https://harbor.{{ .Values.ingress.host }}
- persistence:
persistentVolumeClaim:
registry:
existingClaim: harbor-state-pvc
subPath: registry
chartmuseum:
existingClaim: harbor-state-pvc
subPath: chartmuseum
jobservice:
existingClaim: harbor-state-pvc
subPath: jobservice
database:
existingClaim: harbor-state-pvc
subPath: database
redis:
existingClaim: harbor-state-pvc
subPath: redis
- harborAdminPassword: {{ .Values.harbor.adminPassword | quote }}
- secretKey: {{ .Values.harbor.secretKey | quote }}
{{- if .Values.ingress.createSelfsignedCertificate }}
- caBundleSecretName: ssl-certificate
{{- end }}
{{- if eq .Values.architecture "arm64" }}
- portal:
image:
repository: ghcr.io/octohelm/harbor/harbor-portal
- core:
image:
repository: ghcr.io/octohelm/harbor/harbor-core
- jobservice:
image:
repository: ghcr.io/octohelm/harbor/harbor-jobservice
- registry:
registry:
image:
repository: ghcr.io/octohelm/harbor/registry-photon
controller:
image:
repository: ghcr.io/octohelm/harbor/harbor-registryctl
- chartmuseum:
image:
repository: ghcr.io/octohelm/harbor/chartmuseum-photon
- database:
internal:
image:
repository: ghcr.io/octohelm/harbor/harbor-db
- redis:
internal:
image:
repository: ghcr.io/octohelm/harbor/redis-photon
- exporter:
image:
repository: ghcr.io/octohelm/harbor/harbor-exporter
{{- end }}
- trivy:
enabled: false
- notary:
enabled: false
- name: harbor-state-pvc
namespace: harbor
createNamespace: true
chart: bedag/raw
version: 2.0.0
{{- if not .Values.storage.stateVolume.hostPath }}
needs:
- nfs/nfs-server-state
{{- end }}
values:
- resources:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: harbor-state-pvc
spec:
{{- if not .Values.storage.stateVolume.hostPath }}
storageClassName: nfs-state
{{- else }}
storageClassName: ""
volumeName: harbor-state-pv
{{- end }}
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
{{- if .Values.storage.stateVolume.hostPath }}
- apiVersion: v1
kind: PersistentVolume
metadata:
name: harbor-state-pv
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 10Gi
persistentVolumeReclaimPolicy: Retain
hostPath:
path: {{ .Values.storage.stateVolume.hostPath }}/harbor
{{- end }}
- name: harbor-oauth-secret
namespace: harbor
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: v1
kind: Secret
metadata:
name: knot-oauth-harbor
type: Opaque
data:
client-id: {{ "harbor" | b64enc }}
client-secret: {{ .Values.harbor.clientSecret | b64enc }}
{{- end }}
{{- if .Values.grafana.enabled }}
- name: monitoring
namespace: monitoring
createNamespace: true
chart: prometheus-community/kube-prometheus-stack
version: 51.2.0
values:
- alertmanager:
enabled: false
- grafana:
ingress:
enabled: true
annotations:
"nginx.ingress.kubernetes.io/force-ssl-redirect": "true"
hosts:
- grafana.{{ .Values.ingress.host }}
"grafana.ini":
auth:
oauth_auto_login: true
disable_login_form: true
disable_signout_menu: false
"auth.generic_oauth":
enabled: true
allow_sign_up: true
client_id: "grafana"
client_secret: {{ .Values.grafana.clientSecret }}
{{- if .Values.ingress.createSelfsignedCertificate }}
tls_skip_verify_insecure: true
{{- end }}
auth_url: https://{{ .Values.ingress.host }}/oauth/authorize/
token_url: https://{{ .Values.ingress.host }}/oauth/token/
api_url: https://{{ .Values.ingress.host }}/oauth/userinfo/
scopes: "openid profile email"
login_attribute_path: preferred_username
name_attribute_path: name
email_attribute_name: email
server:
root_url: https://grafana.{{ .Values.ingress.host }}
users:
allow_sign_up: false
- name: grafana-oauth-secret
namespace: monitoring
createNamespace: true
chart: bedag/raw
version: 2.0.0
values:
- resources:
- apiVersion: v1
kind: Secret
metadata:
name: knot-oauth-grafana
type: Opaque
data:
client-id: {{ "grafana" | b64enc }}
client-secret: {{ .Values.grafana.clientSecret | b64enc }}
{{- end }}
- name: knot
namespace: knot
createNamespace: true
{{- if .Values.knot.localImage }}
chart: chart/knot
{{- else }}
chart: knot/knot
version: 4.3.2
{{- end }}
needs:
- cert-manager/cert-manager
{{- if not .Values.storage.filesVolume.hostPath }}
- nfs/nfs-server-files
{{- end }}
values:
- images:
{{- if .Values.knot | get "customVersion" "" }}
knot: carvicsforth/knot:{{ .Values.knot.customVersion }}
{{- else if .Values.knot.localImage }}
knot: carvicsforth/knot:{{ readFile "VERSION" }}
{{- else }}
knot:
{{- end }}
{{- if eq .Values.architecture "arm64" }}
vouchProxy: voucher/vouch-proxy:latest-arm
{{- else }}
vouchProxy:
{{- end }}
nginx:
redis:
kubectl:
- knot:
djangoSecret: {{ .Values.knot | get "djangoSecret" "" | quote }}
djangoDebug: {{ .Values.knot | get "djangoDebug" "0" | quote }}
htpasswdExportDir: {{ .Values.knot | get "htpasswdExportDir" "" | quote }}
dashboardTitle: {{ .Values.knot | get "title" "Knot" | quote }}
issuesURL: {{ .Values.knot | get "issuesURL" "" | quote }}
ingressURL: https://{{ .Values.ingress.host }}
{{- if .Values.storage.stateVolume.hostPath }}
stateHostPath: {{ .Values.storage.stateVolume.hostPath }}/knot
{{- else }}
stateVolumeClaim: knot-state-pvc
{{- end }}
{{- if .Values.ingress.createSelfsignedCertificate }}
certificateSecretName: ssl-certificate
certificateSecretKey: ca.crt
{{- end }}
datasetsAvailable: {{ .Values.knot | get "datasetsAvailable" "" | quote }}
{{- if .Values.storage.filesVolume.hostPath }}
filesURL: file://{{ .Values.storage.filesVolume.hostPath }}
{{- else }}
filesURL: nfs://nfs-server-files.nfs.svc/
{{- end }}
developmentURL: {{ .Values.knot | get "developmentURL" "" | quote }}
{{- if .Values.jupyterHub.enabled }}
jupyterHubURL: https://jupyterhub.{{ .Values.ingress.host }}
jupyterHubNamespace: jupyterhub
jupyterHubNotebookDir: notebooks
{{- end }}
{{- if .Values.argo.enabled }}
argoWorkflowsURL: https://argo.{{ .Values.ingress.host }}
argoWorkflowsNamespace: argo
{{- end }}
{{- if .Values.harbor.enabled }}
harborURL: https://harbor.{{ .Values.ingress.host }}
harborNamespace: harbor
harborAdminPassword: {{ .Values.harbor.adminPassword }}
{{- end }}
{{- if .Values.grafana.enabled }}
grafanaURL: https://grafana.{{ .Values.ingress.host }}
grafanaNamespace: monitoring
{{- end }}
{{- if (.Values | get "openBio.enabled" false) }}
openBioURL: https://openbio.{{ .Values.ingress.host }}
openBioNamespace: openbio
{{- end }}
{{- if not .Values.storage.stateVolume.hostPath }}
- name: knot-state-pvc
namespace: knot
createNamespace: true
chart: bedag/raw
version: 2.0.0
needs:
- nfs/nfs-server-state
values:
- resources:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: knot-state-pvc
spec:
storageClassName: nfs-state
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
{{- end }}