Compare commits

...

3 Commits

Author SHA1 Message Date
Rob Watson
1675199abd Update Gitea > 1.90.0 2023-03-21 02:44:07 +01:00
Rob Watson
ab1a5441c8 Config updates 2023-03-21 02:37:42 +01:00
Rob Watson
ec4bfc39fb grafana: Add Go dashboard 2023-01-14 09:38:00 +01:00
7 changed files with 30 additions and 7 deletions

View File

@ -55,3 +55,9 @@ kubectl apply -f cert-manager/issuer-production.yml
This should be sufficient for cert-manager to issue certificates automatically when the This should be sufficient for cert-manager to issue certificates automatically when the
`tls.enabled` value is set to `true`. `tls.enabled` value is set to `true`.
### Manual installations
The following installations are not defined in this repo.
- Telepresence [link](https://www.telepresence.io/docs/latest/quick-start/)

View File

@ -74,6 +74,8 @@ spec:
configMapKeyRef: configMapKeyRef:
name: drone-config name: drone-config
key: logs-debug key: logs-debug
- name: DRONE_MAX_POOL_SIZE
value: "1"
resources: resources:
requests: requests:
memory: "32Mi" memory: "32Mi"

View File

@ -58,6 +58,15 @@ data:
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \ | sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
> "/var/lib/grafana/dashboards/default/gitea.json" > "/var/lib/grafana/dashboards/default/gitea.json"
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
"https://grafana.com/api/dashboards/6671/revisions/2/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
> "/var/lib/grafana/dashboards/default/go.json"
curl -skf \ curl -skf \
--connect-timeout 60 \ --connect-timeout 60 \
--max-time 60 \ --max-time 60 \

View File

@ -26,7 +26,7 @@ spec:
app.kubernetes.io/name: grafana app.kubernetes.io/name: grafana
app.kubernetes.io/instance: grafana app.kubernetes.io/instance: grafana
annotations: annotations:
checksum/config: 60be875675b2ad83279ee347d5a150559b24646f43fbc740f51b97915a0b9c31 checksum/config: 6cfd9cde9e064705ef04cb503eaf1ec3f1d9ddcd7587d64e86513af5ca827e2c
checksum/dashboards-json-config: 703b33634d715cefba0501f04654c5d6dc28aba46888183ea3420ccdae3c8ecf checksum/dashboards-json-config: 703b33634d715cefba0501f04654c5d6dc28aba46888183ea3420ccdae3c8ecf
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec: spec:

View File

@ -30,7 +30,7 @@ spec:
runAsGroup: 1000 runAsGroup: 1000
initContainers: initContainers:
- name: init-gitea - name: init-gitea
image: gitea/gitea:1.18.0-rootless image: gitea/gitea:1.19.0-rootless
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
command: ["/usr/sbin/init-directory-structure.sh"] command: ["/usr/sbin/init-directory-structure.sh"]
env: env:
@ -53,7 +53,7 @@ spec:
subPath: init-directory-structure.sh subPath: init-directory-structure.sh
name: scripts name: scripts
- name: setup-gitea - name: setup-gitea
image: gitea/gitea:1.18.0-rootless image: gitea/gitea:1.19.0-rootless
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
command: ["/usr/sbin/setup.sh"] command: ["/usr/sbin/setup.sh"]
env: env:
@ -97,7 +97,7 @@ spec:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
containers: containers:
- name: gitea - name: gitea
image: gitea/gitea:1.18.0-rootless image: gitea/gitea:1.19.0-rootless
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- name: http - name: http

View File

@ -54,3 +54,7 @@ dashboards:
gnetId: 10046 gnetId: 10046
revision: 1 revision: 1
datasource: Prometheus datasource: Prometheus
go:
gnetId: 6671
revision: 2
datasource: Prometheus

View File

@ -9,9 +9,11 @@ spec:
privateKeySecretRef: privateKeySecretRef:
name: prod-letsencrypt name: prod-letsencrypt
solvers: solvers:
- http01: # HTTP solver disabled for wildcard support.
ingress: # TODO: consider reenabling
class: prod-nginx # - http01:
# ingress:
# class: prod-nginx
- dns01: - dns01:
route53: route53:
region: eu-west-1 region: eu-west-1