forked from Azure-Samples/openhack-containers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprometheus-demo.yaml
47 lines (47 loc) · 901 Bytes
/
prometheus-demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: apps/v1
kind: Deployment
metadata:
name: prommetrics-demo
labels:
app: prommetrics-demo
spec:
replicas: 4
selector:
matchLabels:
app: prommetrics-demo
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/"
prometheus.io/port: "8000"
labels:
app: prommetrics-demo
spec:
containers:
- name: prommetrics-demo
image: vishiy/tools:prommetricsv5
imagePullPolicy: Always
ports:
- containerPort: 8000
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: prommetrics-demo
labels:
app: prommetrics-demo
spec:
selector:
app: prommetrics-demo
ports:
- name: metrics
port: 8000
protocol: TCP
targetPort: 8000
- name: http
port: 8080
protocol: TCP
targetPort: 8080
type: ClusterIP