mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-22 12:41:01 +02:00
replace deprecated "app" label selector by "app.kubernetes.io/name" in
documents and examples
This commit is contained in:
parent
5520900852
commit
e7d2135cea
@ -575,7 +575,7 @@ local kp = (import 'kube-prometheus/main.libsonnet') + {
|
||||
],
|
||||
selector: {
|
||||
matchLabels: {
|
||||
app: 'myapp',
|
||||
'app.kubernetes.io/name': 'myapp',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -24,7 +24,7 @@ local kp = (import 'kube-prometheus/main.libsonnet') + {
|
||||
],
|
||||
selector: {
|
||||
matchLabels: {
|
||||
app: 'myapp',
|
||||
'app.kubernetes.io/name': 'myapp',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -19,4 +19,4 @@ spec:
|
||||
- logging
|
||||
selector:
|
||||
matchLabels:
|
||||
app: myapp
|
||||
app.kubernetes.io/name: myapp
|
@ -7,7 +7,7 @@ metadata:
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
app: example-app
|
||||
app.kubernetes.io/name: example-app
|
||||
ports:
|
||||
- name: web
|
||||
protocol: TCP
|
||||
@ -22,17 +22,17 @@ metadata:
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: example-app
|
||||
app.kubernetes.io/name: example-app
|
||||
version: 1.1.3
|
||||
replicas: 4
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: example-app
|
||||
app.kubernetes.io/name: example-app
|
||||
version: 1.1.3
|
||||
spec:
|
||||
containers:
|
||||
- name: example-app
|
||||
- name: example-app
|
||||
image: quay.io/fabxc/prometheus_demo_service
|
||||
ports:
|
||||
- name: web
|
||||
|
@ -81,7 +81,7 @@
|
||||
},
|
||||
|
||||
deployment:
|
||||
local podLabels = { app: 'ksm-autoscaler' };
|
||||
local podLabels = { 'app.kubernetes.io/name': 'ksm-autoscaler' };
|
||||
local c = {
|
||||
name: 'ksm-autoscaler',
|
||||
image: $.values.clusterVerticalAutoscaler.image,
|
||||
|
Loading…
x
Reference in New Issue
Block a user