-
Notifications
You must be signed in to change notification settings - Fork 355
/
alertmanager.yaml
173 lines (173 loc) · 5.86 KB
/
alertmanager.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
apiVersion: monitoring.coreos.com/v1
kind: Alertmanager
metadata:
annotations:
operator.prometheus.io/controller-id: openshift-user-workload-monitoring/prometheus-operator
labels:
app.kubernetes.io/component: alert-router
app.kubernetes.io/instance: user-workload
app.kubernetes.io/managed-by: cluster-monitoring-operator
app.kubernetes.io/name: alertmanager
app.kubernetes.io/part-of: openshift-monitoring
app.kubernetes.io/version: 0.26.0
name: user-workload
namespace: openshift-user-workload-monitoring
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/component: alert-router
app.kubernetes.io/instance: user-workload
app.kubernetes.io/name: alertmanager
app.kubernetes.io/part-of: openshift-monitoring
namespaces:
- openshift-user-workload-monitoring
topologyKey: kubernetes.io/hostname
containers:
- args:
- --secure-listen-address=0.0.0.0:9095
- --upstream=http://127.0.0.1:9093
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
- --config-file=/etc/kube-rbac-proxy/config.yaml
- --logtostderr=true
image: quay.io/brancz/kube-rbac-proxy:v0.15.0
name: alertmanager-proxy
ports:
- containerPort: 9095
name: web
resources:
requests:
cpu: 1m
memory: 15Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /etc/tls/private
name: secret-alertmanager-user-workload-tls
readOnly: true
- mountPath: /etc/kube-rbac-proxy
name: secret-alertmanager-kube-rbac-proxy
readOnly: true
- args:
- --secure-listen-address=0.0.0.0:9092
- --upstream=http://127.0.0.1:9096
- --config-file=/etc/kube-rbac-proxy/config.yaml
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
image: quay.io/brancz/kube-rbac-proxy:v0.15.0
name: tenancy-proxy
ports:
- containerPort: 9092
name: tenancy
resources:
requests:
cpu: 1m
memory: 15Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /etc/kube-rbac-proxy
name: secret-alertmanager-kube-rbac-proxy-tenancy
- mountPath: /etc/tls/private
name: secret-alertmanager-user-workload-tls
- args:
- --secure-listen-address=0.0.0.0:9097
- --upstream=http://127.0.0.1:9093
- --config-file=/etc/kube-rbac-proxy/config.yaml
- --tls-cert-file=/etc/tls/private/tls.crt
- --tls-private-key-file=/etc/tls/private/tls.key
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
- --client-ca-file=/etc/tls/client/client-ca.crt
- --logtostderr=true
- --allow-paths=/metrics
image: quay.io/brancz/kube-rbac-proxy:v0.15.0
name: kube-rbac-proxy-metric
ports:
- containerPort: 9097
name: metrics
resources:
requests:
cpu: 1m
memory: 15Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /etc/kube-rbac-proxy
name: secret-alertmanager-kube-rbac-proxy-metric
readOnly: true
- mountPath: /etc/tls/private
name: secret-alertmanager-user-workload-tls
readOnly: true
- mountPath: /etc/tls/client
name: metrics-client-ca
readOnly: true
- args:
- --insecure-listen-address=127.0.0.1:9096
- --upstream=http://127.0.0.1:9093
- --label=namespace
- --error-on-replace
image: quay.io/prometheuscommunity/prom-label-proxy:v0.8.1
name: prom-label-proxy
resources:
requests:
cpu: 1m
memory: 20Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
terminationMessagePolicy: FallbackToLogsOnError
image: quay.io/prometheus/alertmanager:v0.26.0
listenLocal: true
nodeSelector:
kubernetes.io/os: linux
podMetadata:
annotations:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app.kubernetes.io/component: alert-router
app.kubernetes.io/instance: user-workload
app.kubernetes.io/name: alertmanager
app.kubernetes.io/part-of: openshift-monitoring
app.kubernetes.io/version: 0.26.0
priorityClassName: system-cluster-critical
replicas: 2
resources:
requests:
cpu: 4m
memory: 40Mi
secrets:
- alertmanager-user-workload-tls
- alertmanager-kube-rbac-proxy
- alertmanager-kube-rbac-proxy-tenancy
- alertmanager-kube-rbac-proxy-metric
securityContext:
fsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
seccompProfile:
type: RuntimeDefault
serviceAccountName: alertmanager-user-workload
version: 0.26.0
volumes:
- configMap:
name: metrics-client-ca
name: metrics-client-ca