Skip to content
Snippets Groups Projects
Unverified Commit aabcf491 authored by Varac's avatar Varac
Browse files

Configure dashboard with flux2

Closes: #1040
parent 4f649fd3
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@
* [ ] Create new source if needed in `flux2/infrastructure/sources/APP.yaml`
* [ ] Include `APP.yaml` in `flux2/infrastructure/sources/kustomization.yaml`
* [ ] Add app secret: `install/templates/stackspin-APP-variables.yaml.jinja`
* Add `Kustomizations`:
* [ ] `flux2/cluster/optional/APP/APP.yaml`
* [ ] `flux2/apps/APP/kustomization.yaml`
* [ ] If needed, add PVCs in `flux2/apps/APP/pvc.yaml`
......@@ -72,3 +71,8 @@ Add the following elements to `.gitlab-ci.yml`:
* [ ] `docs/installation_instructions.rst`
* [ ] `docs/testing_instructions.rst`
* [ ] `docs/usage.rst`
## Etc
* [ ] Create follow-up issue with:
* [ ] Fine-tune CPU and mem limits (https://open.greenhost.net/stackspin/stackspin/-/ issues/1027)
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: dashboard
spec:
releaseName: dashboard
dependsOn:
- name: nginx
chart:
spec:
chart: ./deployment/helmchart/
# NOTE: Change the GitRepository yaml file if you want a different version
sourceRef:
kind: GitRepository
name: dashboard
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
timeout: 10m
valuesFrom:
- kind: ConfigMap
name: stackspin-dashboard-values
- kind: Secret
name: stackspin-dashboard-values
# Allow overriding values by ConfigMap or Secret
- kind: ConfigMap
name: stackspin-dashboard-override
optional: true
- kind: Secret
name: stackspin-dashboard-override
optional: true
---
apiVersion: v1
kind: ConfigMap
metadata:
name: stackspin-dashboard-values
data:
values.yaml: |
dashboard:
image:
registry: open.greenhost.net:4567
repository: stackspin/dashboard/dashboard
tag: main
pullPolicy: Always
host: dashboard.${domain}
resources:
limits:
cpu: 20m
memory: 32Mi
requests:
cpu: 10m
memory: 16Mi
backend:
image:
registry: open.greenhost.net:4567
repository: stackspin/dashboard-backend/dashboard-backend
tag: main
pullPolicy: Always
smtp:
enabled: ${outgoing_mail_enabled}
user: "${outgoing_mail_smtp_user}"
password: "${outgoing_mail_smtp_password}"
host: "${outgoing_mail_smtp_host}"
port: "${outgoing_mail_smtp_port}"
kratosUrl: single-sign-on-kratos-admin
resources:
limits:
cpu: 40m
memory: 256Mi
requests:
cpu: 20m
memory: 128Mi
ingress:
certManager: true
enabled: true
hostname: dashboard.${domain}
tls:
- hosts:
- dashboard.${domain}
secretName: stackspin-dashboard
apiVersion: v1
kind: Secret
metadata:
name: stackspin-dashboard-values
data:
values.yaml: |
backend:
secretKey: ${backend_secretkey}
password: ${backend_password}
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: stackspin
resources:
- ./dashboard-release.yaml
- ./dashboard-values-configmap.yaml
- ./dashboard-values-secret.yaml
......@@ -6,6 +6,6 @@ metadata:
namespace: stackspin
spec:
interval: 1h
url: https://open.greenhost.net/stackspin/admin-frontend
url: https://open.greenhost.net/stackspin/dashboard
ref:
commit: 25a82b08c85d7f2b64919efe1084dd2f847d91f1
commit: f87849771b085eed5dee2e49ff8cfd720fc32c23
......@@ -17,3 +17,4 @@ resources:
- wikimedia.yaml
- wordpress.yaml
- zulip.yaml
- dashboard.yaml
apiVersion: v1
kind: Secret
metadata:
name: stackspin-wekan-variables
data:
backend_secretkey: "{{ 32 | generate_password | b64encode }}"
backend_password: "{{ 32 | generate_password | b64encode }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment