-
Notifications
You must be signed in to change notification settings - Fork 1
/
kubernetes_daemonset.yaml
55 lines (55 loc) · 1.32 KB
/
kubernetes_daemonset.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: dockerhub-ratelimit-exporter
name: dockerhub-ratelimit-exporter
spec:
selector:
matchLabels:
app: dockerhub-ratelimit-exporter
template:
metadata:
annotations:
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
labels:
app: dockerhub-ratelimit-exporter
spec:
containers:
- env:
- name: NODENAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: matthopeffx/dockerhub-ratelimit-exporter:0.0.202011091710
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /metrics
port: 8080
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 10
name: dockerhub-ratelimit-exporter
ports:
- containerPort: 8080
name: metrics
protocol: TCP
resources:
limits:
cpu: 300m
memory: 48Mi
requests:
cpu: 5m
memory: 16Mi
securityContext:
runAsNonRoot: true
runAsUser: 65534
updateStrategy:
rollingUpdate:
maxUnavailable: 100%
type: RollingUpdate