add matchLabels in Deployment yaml, that both API extensions/v1beta1 and apps/v1 can be used (#2036)

Signed-off-by: LinWengang <linwengang@chinacloud.com.cn>
This commit is contained in:
david 2018-02-08 00:50:12 +08:00 committed by Manuel Alejandro de Brito Fontes
parent 7ede78f004
commit 5ca39ae600
6 changed files with 18 additions and 0 deletions

View file

@ -7,6 +7,9 @@ metadata:
namespace: ingress-nginx
spec:
replicas: 1
selector:
matchLabels:
app: default-http-backend
template:
metadata:
labels:

View file

@ -7,6 +7,9 @@ metadata:
namespace: default
spec:
replicas: 1
selector:
matchLabels:
k8s-app: demo-auth-service
template:
metadata:
labels:

View file

@ -7,6 +7,9 @@ metadata:
namespace: default
spec:
replicas: 1
selector:
matchLabels:
k8s-app: demo-echo-service
template:
metadata:
labels:

View file

@ -4,6 +4,9 @@ metadata:
name: http-svc
spec:
replicas: 1
selector:
matchLabels:
app: http-svc
template:
metadata:
labels:

View file

@ -6,6 +6,9 @@ metadata:
k8s-app: nginx-ingress-controller
spec:
replicas: 1
selector:
matchLabels:
k8s-app: nginx-ingress-controller
template:
metadata:
labels:

View file

@ -22,6 +22,9 @@ metadata:
app: echoheaders
spec:
replicas: 1
selector:
matchLabels:
app: echoheaders
template:
metadata:
labels: