Skip to content

Commit 46afb33

Browse files
committed
initial grafana
1 parent 5494033 commit 46afb33

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

deployment/grafana.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ token_url = https://accounts.google.com/o/oauth2/token
1212
allowed_domains = zinclabs.io
1313
allow_sign_up = true
1414

15-
enable_alpha = false
15+
[plugins]
16+
enable_alpha = true
1617
app_tls_skip_verify_insecure = false
1718
# Enter a comma-separated list of plugin identifiers to identify plugins to load even if they are unsigned. Plugins with modified signatures are never loaded.
1819
allow_loading_unsigned_plugins = zinclabs_zincobserve

deployment/grafana_statefulset.yaml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: Issuer
3+
metadata:
4+
name: letsencrypt-prod
5+
spec:
6+
acme:
7+
8+
privateKeySecretRef:
9+
name: letsencrypt-prod
10+
server: https://acme-v02.api.letsencrypt.org/directory
11+
solvers:
12+
- http01:
13+
ingress:
14+
class: nginx
15+
---
16+
117
apiVersion: apps/v1
218
kind: StatefulSet
319
metadata:
@@ -13,10 +29,14 @@ spec:
1329
labels:
1430
app: grafana
1531
spec:
16-
initContainers:
17-
- name: zincobserve_plugin_loader
18-
image: busybox
19-
command: ['sh', '-c', 'cp -R /code/dist/* /var/lib/grafana/plugins/']
32+
securityContext:
33+
fsGroup: 2000
34+
runAsUser: 10000
35+
runAsGroup: 3000
36+
# initContainers:
37+
# - name: zincobserve_plugin_loader
38+
# image: busybox
39+
# command: ['sh', '-c', 'cp -R /code/dist/* /var/lib/grafana/plugins/']
2040
containers:
2141
- name: grafana
2242
image: grafana/grafana:latest
@@ -28,6 +48,8 @@ spec:
2848
mountPath: /var/lib/grafana
2949
- name: grafana-plugins
3050
mountPath: /var/lib/grafana/plugins
51+
- name: grafana-config
52+
mountPath: /etc/grafana
3153
volumes:
3254
- name: grafana-base
3355
persistentVolumeClaim:

0 commit comments

Comments
 (0)