Fix label not match in ReplicaSet PodPreset yaml

pull/6961/head
nashasha1 2018-01-14 23:30:23 +08:00
parent 24d9231d91
commit db2d8be7f1
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ metadata:
name: frontend
labels:
app: guestbook
tier: frontend
role: frontend
annotations:
podpreset.admission.kubernetes.io/podpreset-allow-database: "resource version"
spec:

View File

@ -6,14 +6,14 @@ spec:
replicas: 3
selector:
matchLabels:
tier: frontend
role: frontend
matchExpressions:
- {key: tier, operator: In, values: [frontend]}
- {key: role, operator: In, values: [frontend]}
template:
metadata:
labels:
app: guestbook
tier: frontend
role: frontend
spec:
containers:
- name: php-redis