Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade cdash.spack.io to v3.2.0-rc1 #628

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions k8s/production/cdash/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: cdash-updater
name: cdash-site-ssl-config
namespace: cdash
data:
script: |
#! /bin/sh -e
date
echo
wget -O - \
"https://dl.k8s.io/v1.15.0/kubernetes-client-linux-amd64.tar.gz" \
| tar xzf - \
echo "ROLLOUT deployments/$dep"
exec kubernetes/client/bin/kubectl rollout restart -n cdash \
deployments/cdash
cdash-site-ssl.conf: |
<IfFile /var/www/my-cert.pem>
<VirtualHost *:443>
DocumentRoot "/cdash/public"
ServerName localhost
ErrorLog "/var/log/apache2/error.log"
CustomLog "/var/log/apache2/access.log" combined
SSLEngine on
SSLCertificateFile /var/www/my-cert.pem
SSLCertificateKeyFile /var/www/my-cert.key
<Directory "/cdash/public">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
</IfFile>
ports.conf: |
Listen 8080
64 changes: 27 additions & 37 deletions k8s/production/cdash/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,71 +22,61 @@ spec:
restartPolicy: Always
containers:
- name: cdash
command: ["/bin/bash", "-c"]
args:
- >
eval 'CDASH_CONFIG="$(CDASH_CONFIG_TEMPLATE)"' ;
export CDASH_CONFIG ;
exec /bin/bash /docker-entrypoint.sh
image: kitware/cdash:spack_deploy_v5
image: kitware/cdash:v3.2.0-rc1
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 1600m
memory: 2G
ports:
- containerPort: 80
- containerPort: 8080
name: web

volumeMounts:
- name: cdash-site-ssl-config-volume
mountPath: /etc/apache2/sites-available/cdash-site-ssl.conf
subPath: cdash-site-ssl.conf
- name: cdash-site-ssl-config-volume
mountPath: /etc/apache2/ports.conf
subPath: ports.conf

env:
- name: CDASH_ROOT_ADMIN_PASS
valueFrom:
secretKeyRef:
name: cdash-secrets
key: root-password
- name: CDASH_DB_HOST
- name: DB_HOST
valueFrom:
secretKeyRef:
name: cdash-secrets
key: db-host
- name: CDASH_DB_TYPE
valueFrom:
secretKeyRef:
name: cdash-secrets
key: db-type
- name: CDASH_DB_NAME
- name: DB_DATABASE
valueFrom:
secretKeyRef:
name: cdash-secrets
key: db-name
- name: CDASH_DB_LOGIN
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: cdash-secrets
key: db-login
- name: CDASH_DB_PORT
valueFrom:
secretKeyRef:
name: cdash-secrets
key: db-port
- name: CDASH_DB_PASS
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: cdash-secrets
key: db-password
- name: CDASH_CONFIG_TEMPLATE
value: |
\$CDASH_DB_HOST = '\'$CDASH_DB_HOST\'';
\$CDASH_DB_NAME = '\'$CDASH_DB_NAME\'';
\$CDASH_DB_TYPE = '\'$CDASH_DB_TYPE\'';
\$CDASH_DB_LOGIN = '\'$CDASH_DB_LOGIN\'';
\$CDASH_DB_PORT = '\'$CDASH_DB_PORT\'';
\$CDASH_DB_PASS = '\'$CDASH_DB_PASS\'';
\$CDASH_DB_CONNECTION_TYPE = '\'host\'';
\$CDASH_BASE_URL = '\'https://cdash.spack.io\'';
\$CDASH_USE_HTTPS = '\'1\'';
\$CDASH_PRODUCTION_MODE = '\'1\'';
\$CDASH_AUTOREMOVE_BUILDS = '\'1\'';
\$CDASH_ACTIVE_PROJECT_DAYS = '\'0\'';
\$CDASH_ASYNCHRONOUS_SUBMISSION = '\'1\'';
- name: APP_URL
value: https://cdash.spack.io
- name: ACTIVE_PROJECT_DAYS
value: '0'
- name: QUEUE_CONNECTION
value: database

volumes:
- name: cdash-site-ssl-config-volume
configMap:
name: cdash-site-ssl-config

nodeSelector:
spack.io/node-pool: base
2 changes: 1 addition & 1 deletion k8s/production/cdash/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ spec:
service:
name: cdash
port:
number: 80
number: 8080
path: /
pathType: ImplementationSpecific
4 changes: 2 additions & 2 deletions k8s/production/cdash/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ spec:
type: ClusterIP
ports:
- name: web
port: 80
targetPort: 80
port: 8080
targetPort: 8080
selector:
app: cdash
svc: web
Loading