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:
parent
7ede78f004
commit
5ca39ae600
6 changed files with 18 additions and 0 deletions
|
|
@ -7,6 +7,9 @@ metadata:
|
|||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: demo-auth-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ metadata:
|
|||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: demo-echo-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue