Merge pull request #6961 from nashasha1/fix/podpreset-yaml-bug

Fix label not match in ReplicaSet PodPreset yaml
This commit is contained in:
Qiming
2018-01-15 09:32:29 +08:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
@@ -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:
@@ -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