Skip to content

Commit c660904

Browse files
committed
Update cdash.spack.io to be deployed by Helm
Also update our terraform config to: * Use postgres instead of mysql * Provision an S3 bucket for CDash to read/write files to * Create a new ServiceAccount to allow CDash to access this S3 bucket
1 parent 38fa33e commit c660904

File tree

10 files changed

+230
-303
lines changed

10 files changed

+230
-303
lines changed

k8s/production/cdash/certificates.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ spec:
99
issuerRef:
1010
name: letsencrypt
1111
kind: ClusterIssuer
12-
commonName: cdash.spack.io
1312
dnsNames:
1413
- cdash.spack.io

k8s/production/cdash/configmaps.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

k8s/production/cdash/cron-jobs.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

k8s/production/cdash/deployments.yaml

Lines changed: 0 additions & 92 deletions
This file was deleted.

k8s/production/cdash/release.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
apiVersion: source.toolkit.fluxcd.io/v1
3+
kind: HelmRepository
4+
metadata:
5+
name: kitware
6+
namespace: cdash
7+
spec:
8+
interval: 10m
9+
url: https://kitware.github.io/helm
10+
11+
---
12+
apiVersion: helm.toolkit.fluxcd.io/v2
13+
kind: HelmRelease
14+
metadata:
15+
name: cdash
16+
namespace: cdash
17+
spec:
18+
interval: 10m
19+
chart:
20+
spec:
21+
chart: cdash
22+
version: 0.2.0
23+
sourceRef:
24+
kind: HelmRepository
25+
name: kitware
26+
values:
27+
nodeSelector:
28+
spack.io/node-pool: base
29+
30+
cdash:
31+
host: cdash.spack.io
32+
serviceAccountName: cdash
33+
website:
34+
resources:
35+
requests:
36+
memory: 512Mi
37+
worker:
38+
replicas: 2
39+
resources:
40+
requests:
41+
memory: 512Mi
42+
43+
postgresql:
44+
enabled: false
45+
46+
minio:
47+
enabled: false

k8s/production/cdash/sealed-secrets.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

k8s/production/cdash/service-accounts.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

k8s/production/cdash/upgrade-db-schema.yaml

Lines changed: 0 additions & 84 deletions
This file was deleted.

k8s/staging/cdash/kustomization.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- ../../production/cdash/certificates.yaml
6+
- ../../production/cdash/ingress.yaml
7+
- ../../production/cdash/release.yaml
8+
9+
patches:
10+
- target:
11+
kind: Certificate
12+
name: tls-cdash
13+
namespace: cdash
14+
patch: |-
15+
- op: replace
16+
path: /spec/dnsNames/0
17+
value: cdash.staging.spack.io
18+
19+
- target:
20+
kind: Ingress
21+
name: cdash
22+
namespace: cdash
23+
patch: |-
24+
- op: replace
25+
path: /spec/rules/0/host
26+
value: cdash.staging.spack.io
27+
28+
- target:
29+
kind: HelmRelease
30+
name: cdash
31+
namespace: cdash
32+
patch: |-
33+
- op: replace
34+
path: /spec/values/cdash/host
35+
value: cdash.staging.spack.io
36+
- op: replace
37+
path: /spec/values/cdash/website/resources/requests/memory
38+
value: 50Mi
39+
- op: replace
40+
path: /spec/values/cdash/worker/replicas
41+
value: 1
42+
- op: replace
43+
path: /spec/values/cdash/worker/resources/requests/memory
44+
value: 50Mi

0 commit comments

Comments
 (0)