Skip to content

Commit 3eb0bc9

Browse files
fai555k8s-ci-robot
authored andcommitted
add selector in Deployment spec (#1413)
1 parent 3a51b91 commit 3eb0bc9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/docs/components/serving/tfserving_new.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ metadata:
4141
name: mnist-v1
4242
namespace: kubeflow
4343
spec:
44+
selector:
45+
matchLabels:
46+
app: mnist
4447
template:
4548
metadata:
4649
annotations:
@@ -160,6 +163,9 @@ Change the deployment spec as follows:
160163

161164
```yaml
162165
spec:
166+
selector:
167+
matchLabels:
168+
app: mnist
163169
template:
164170
metadata:
165171
annotations:
@@ -253,6 +259,9 @@ metadata:
253259
name: s3
254260
namespace: kubeflow
255261
spec:
262+
selector:
263+
matchLabels:
264+
app: mnist
256265
template:
257266
metadata:
258267
annotations:

0 commit comments

Comments
 (0)