This commit is contained in:
CaffeineFueled 2024-10-23 09:49:35 +02:00
commit 2b007e3235
No known key found for this signature in database
GPG key ID: 739D3C8D00944004
9 changed files with 1391 additions and 0 deletions

63
grafana-stack.yaml Normal file
View file

@ -0,0 +1,63 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana-stack
labels:
app: grafana-stack
spec:
replicas: 1
selector:
matchLabels:
app: grafana-stack
template:
metadata:
labels:
app: grafana-stack
spec:
containers:
- name: grafana
image: docker.io/grafana/grafana:latest
ports:
- containerPort: 3000
hostPort: 3000
protocol: TCP
volumeMounts:
- mountPath: /etc/grafana/grafana.ini:Z
name: grafana-config
- mountPath: /var/lib/grafana:Z
name: grafana
- name: loki
image: docker.io/grafana/loki:latest
args:
- --config.file=/mnt/config/loki-local-config.yaml
securityContext:
runAsUser: 1000
ports:
- containerPort: 3100
hostPort: 3100
protocol: TCP
- containerPort: 9096
hostPort: 9096
protocol: TCP
volumeMounts:
- mountPath: /tmp/loki:Z
name: loki
- mountPath: /mnt/config/loki-local-config.yaml:Z
name: loki-config
volumes:
- hostPath:
path: ./grafana/data
type: Directory
name: grafana
- hostPath:
path: ./grafana/grafana.ini
type: File
name: grafana-config
- hostPath:
path: ./loki/data
type: Directory
name: loki
- hostPath:
path: ./loki/loki-local-config.yaml
type: File
name: loki-config