Merge pull request #351 from 3dwardch3ng/infra/prometheus

add grafana pod to prometheus service
This commit is contained in:
2024-06-26 22:30:50 +10:00
committed by GitHub
3 changed files with 33 additions and 2 deletions

View File

@@ -41,6 +41,14 @@ spec:
mountPath: /etc/prometheus/
- name: prometheus-storage-volume
mountPath: /prometheus/
- name: grafana
image: grafana/grafana:11.0.1
ports:
- containerPort: 3000
volumeMounts:
- name: prometheus-storage-volume
mountPath: /var/lib/grafana
subPath: grafana
volumes:
- name: prometheus-config-volume
hostPath:

View File

@@ -28,4 +28,24 @@ spec:
service:
name: prometheus
port:
number: 9999
number: 9999
- host: "grafana.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: prometheus
port:
number: 3030
- host: "grafana.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: prometheus
port:
number: 3030

View File

@@ -14,4 +14,7 @@ spec:
- port: 9999
targetPort: 9090
protocol: TCP
name: http
name: http
- name: grafana-port
port: 3030
targetPort: 3000