-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx-proxy-deployment.yml
52 lines (52 loc) · 1.11 KB
/
nginx-proxy-deployment.yml
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
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prometheus-proxy
namespace: prometheus
spec:
replicas: 4
minReadySeconds: 15
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: prometheus-proxy
spec:
containers:
- name: prometheus-proxy
image: nginx:alpine
imagePullPolicy: Always
ports:
- containerPort: 9190
name: prometheus
- containerPort: 9290
name: prometheus-kpi
livenessProbe:
httpGet:
path: /healthz
port: prometheus
scheme: HTTP
readinessProbe:
httpGet:
path: /healthz
port: prometheus
scheme: HTTP
resources:
requests:
cpu: 0
memory: 10Mi
limits:
cpu: 0.1
memory: 50Mi
volumeMounts:
- name: config
mountPath: "/etc/nginx/conf.d"
volumes:
- name: config
configMap:
name: prometheus-proxy