remove "app" label selector deprecated by prometheus-operator

This commit is contained in:
Haoyu Sun 2021-10-05 19:59:39 +02:00
parent 16e3663f06
commit b6c97fc6c0
No known key found for this signature in database
GPG Key ID: 77FD57F05AA2E99A
4 changed files with 1 additions and 4 deletions

View File

@ -140,7 +140,6 @@ function(params) {
{ name: 'reloader-web', port: am._config.reloaderPort, targetPort: 'reloader-web' },
],
selector: {
app: 'alertmanager',
alertmanager: am._config.name,
} + am._config.selectorLabels,
sessionAffinity: 'ClientIP',

View File

@ -107,7 +107,7 @@ function(params) {
[{ name: 'grpc', port: 10901, targetPort: 10901 }]
else []
),
selector: { app: 'prometheus' } + p._config.selectorLabels,
selector: p._config.selectorLabels,
sessionAffinity: 'ClientIP',
},
},

View File

@ -19,7 +19,6 @@ spec:
targetPort: reloader-web
selector:
alertmanager: main
app: alertmanager
app.kubernetes.io/component: alert-router
app.kubernetes.io/name: alertmanager
app.kubernetes.io/part-of: kube-prometheus

View File

@ -18,7 +18,6 @@ spec:
port: 8080
targetPort: reloader-web
selector:
app: prometheus
app.kubernetes.io/component: prometheus
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: kube-prometheus