fix Deployments in examples for apps/v1 selector requirement (#1684)

The apps/v1 API makes the selector in Deployments a required property.

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
This commit is contained in:
Adnan Abdulhussein
2019-07-19 10:40:47 -07:00
committed by Steve Kriss
parent c8bac5bfae
commit 65906efffa
3 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,9 @@ metadata:
spec:
strategy:
type: Recreate
selector:
matchLabels:
component: minio
template:
metadata:
labels:

View File

@@ -28,6 +28,9 @@ metadata:
namespace: nginx-example
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:

View File

@@ -44,6 +44,9 @@ metadata:
namespace: nginx-example
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels: