forked from dhtech/snmpexporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snmpexporterd.k8s.yaml
65 lines (65 loc) · 1.28 KB
/
snmpexporterd.k8s.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
55
56
57
58
59
60
61
62
63
64
65
apiVersion: v1
kind: Service
metadata:
labels:
app: snmpexporter
name: prober
namespace: prod
spec:
ports:
- name: probe
port: 9190
protocol: TCP
targetPort: 9190
selector:
app: snmpexporter
type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: snmpexporter
name: snmpexporter
namespace: prod
spec:
replicas: 20
selector:
matchLabels:
app: snmpexporter
strategy:
rollingUpdate:
maxSurge: 10
maxUnavailable: 5
type: RollingUpdate
template:
metadata:
labels:
app: snmpexporter
name: snmpexporter
spec:
containers:
- image: quay.io/dhtech/snmpexporter
imagePullPolicy: Always
name: snmpexporter
volumeMounts:
- name: config-volume
mountPath: /etc/snmpexporter
resources:
requests:
memory: "300Mi"
limits:
memory: "400Mi"
livenessProbe:
httpGet:
path: /healthy
port: 9190
initialDelaySeconds: 15
timeoutSeconds: 30
restartPolicy: Always
terminationGracePeriodSeconds: 30
volumes:
- name: config-volume
configMap:
name: snmpexporter
---