-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprom-pushgateway.yaml
116 lines (114 loc) · 3.22 KB
/
prom-pushgateway.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
apiVersion: "v1"
kind: "ServiceAccount"
metadata:
annotations: {}
name: "my-prometheus-prometheus-pushgateway"
labels:
helm.sh/chart: "prometheus-pushgateway-2.0.2"
app.kubernetes.io/managed-by: "Helm"
app.kubernetes.io/name: "prometheus-pushgateway"
app.kubernetes.io/instance: "my-prometheus"
app.kubernetes.io/version: "v1.5.1"
---
apiVersion: "v1"
kind: "Service"
metadata:
annotations:
prometheus.io/probe: "pushgateway"
name: "my-prometheus-prometheus-pushgateway"
labels:
helm.sh/chart: "prometheus-pushgateway-2.0.2"
app.kubernetes.io/managed-by: "Helm"
app.kubernetes.io/name: "prometheus-pushgateway"
app.kubernetes.io/instance: "my-prometheus"
app.kubernetes.io/version: "v1.5.1"
spec:
externalIPs: []
loadBalancerSourceRanges: []
type: "ClusterIP"
selector:
app.kubernetes.io/name: "prometheus-pushgateway"
app.kubernetes.io/instance: "my-prometheus"
ports:
- name: "http"
port: 9091
protocol: "TCP"
targetPort: 9091
---
kind: "Deployment"
apiVersion: "apps/v1"
metadata:
annotations: {}
name: "my-prometheus-prometheus-pushgateway"
labels:
helm.sh/chart: "prometheus-pushgateway-2.0.2"
app.kubernetes.io/managed-by: "Helm"
app.kubernetes.io/name: "prometheus-pushgateway"
app.kubernetes.io/instance: "my-prometheus"
app.kubernetes.io/version: "v1.5.1"
app.kubernetes.io/component: "deployment.my-prometheus-prometheus-pushgateway"
spec:
replicas: 1
revisionHistoryLimit: 5
selector:
matchLabels:
app.kubernetes.io/name: "prometheus-pushgateway"
app.kubernetes.io/instance: "my-prometheus"
matchExpressions: []
strategy:
type: "Recreate"
template:
metadata:
annotations: {}
labels:
helm.sh/chart: "prometheus-pushgateway-2.0.2"
app.kubernetes.io/managed-by: "Helm"
app.kubernetes.io/name: "prometheus-pushgateway"
app.kubernetes.io/instance: "my-prometheus"
app.kubernetes.io/version: "v1.5.1"
app.kubernetes.io/component: "deployment.my-prometheus-prometheus-pushgateway"
spec:
terminationGracePeriodSeconds: 30
nodeSelector: {}
serviceAccountName: "my-prometheus-prometheus-pushgateway"
volumes:
- name: "storage-volume"
emptyDir: {}
containers:
- name: "pushgateway"
image: "prom/pushgateway:v1.5.1"
command: []
args: []
imagePullPolicy: "IfNotPresent"
ports:
- name: "metrics"
containerPort: 9091
protocol: "TCP"
volumeMounts:
- name: "storage-volume"
mountPath: "/data"
subPath: ""
livenessProbe:
initialDelaySeconds: 10
timeoutSeconds: 10
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
httpGet:
path: "/-/ready"
port: 9091
readinessProbe:
initialDelaySeconds: 10
timeoutSeconds: 10
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
httpGet:
path: "/-/ready"
port: 9091
securityContext:
runAsUser: 65534
runAsNonRoot: true
fsGroup: 65534
supplementalGroups: []