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: ingress-nginx
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: default-http-backend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -4,6 +4,9 @@ metadata:
|
|||
name: http-svc
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: http-svc
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
@ -6,6 +6,9 @@ metadata:
|
|||
k8s-app: nginx-ingress-controller
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: nginx-ingress-controller
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
@ -22,6 +22,9 @@ metadata:
|
|||
app: echoheaders
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: echoheaders
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
Loading…
Reference in a new issue