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