add grafana pod to prometheus service
This commit is contained in:
@@ -41,6 +41,14 @@ spec:
|
|||||||
mountPath: /etc/prometheus/
|
mountPath: /etc/prometheus/
|
||||||
- name: prometheus-storage-volume
|
- name: prometheus-storage-volume
|
||||||
mountPath: /prometheus/
|
mountPath: /prometheus/
|
||||||
|
- name: grafana
|
||||||
|
image: grafana/grafana
|
||||||
|
ports:
|
||||||
|
- containerPort: 3000
|
||||||
|
volumeMounts:
|
||||||
|
- name: prometheus-storage-volume
|
||||||
|
mountPath: /var/lib/grafana
|
||||||
|
subPath: grafana
|
||||||
volumes:
|
volumes:
|
||||||
- name: prometheus-config-volume
|
- name: prometheus-config-volume
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|||||||
@@ -29,3 +29,23 @@ spec:
|
|||||||
name: prometheus
|
name: prometheus
|
||||||
port:
|
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
|
||||||
@@ -15,3 +15,6 @@ spec:
|
|||||||
targetPort: 9090
|
targetPort: 9090
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
- name: grafana-port
|
||||||
|
port: 3030
|
||||||
|
targetPort: 3000
|
||||||
Reference in New Issue
Block a user