-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.yaml
54 lines (53 loc) · 1.01 KB
/
prometheus.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
48
49
50
51
52
53
54
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: horizoniplist-ingress
annotations:
ingress.kubernetes.io/rewrite-target: /
nginx.org/proxy-connect-timeout: 120s
nginx.ingress.kubernetes.io/affinity: cookie
spec:
rules:
- host:
http:
paths:
- path:
backend:
serviceName: horizoniplist-service
servicePort: 80
tls:
- hosts:
-
secretName: flaskvci
---
kind: Service
apiVersion: v1
metadata:
name: horizoniplist-service
spec:
ports:
- name: app-port
port: 80
targetPort: 5000
selector:
app: horizoniplist-vci
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: horizoniplist-vci
labels:
app: horizoniplist-vci
spec:
replicas: 1
template:
metadata:
labels:
app: horizoniplist-vci
spec:
containers:
- name:
image: prom/prometheus:lts
imagePullPolicy: Always
ports:
- containerPort: 5000