replace deprecated "app" label selector by "app.kubernetes.io/name" in

documents and examples
This commit is contained in:
Haoyu Sun
2021-10-07 15:11:21 +02:00
parent 5520900852
commit e7d2135cea
5 changed files with 8 additions and 8 deletions

View File

@@ -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