Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 582e8d7

Browse files
authored
update sample deployment manifest to compatible with k8s 1.16 (#5)
1 parent c04a357 commit 582e8d7

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ $ kubectl create -f https://raw.githubusercontent.com/awslabs/aws-virtual-gpu-de
4545
Virtual NVIDIA GPUs can now be consumed via container level resource requirements using the resource name `k8s.amazonaws.com/vgpu`:
4646

4747
```yaml
48-
apiVersion: extensions/v1beta1
48+
apiVersion: apps/v1
4949
kind: Deployment
5050
metadata:
5151
name: resnet-deployment
5252
spec:
5353
replicas: 3
54+
selector:
55+
matchLabels:
56+
app: resnet-server
5457
template:
5558
metadata:
5659
labels:

examples/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Enter python client pod we created.
2323
```shell
2424
$ kubectl exec -it python-client bash
2525

26-
$ apt update && apt install -y vim
26+
$ apt update && apt install -y vim && pip install requests
2727
```
2828

2929
Prepare model client, copy the scripts from [resnet_client.py](./resnet_client.py)
@@ -37,4 +37,4 @@ Invoke model prediction, the first call will take some time to warm up, reset of
3737
```shell
3838
$ python client.py
3939
Prediction class: 286, avg latency: 26.615 ms
40-
```
40+
```

examples/resnet.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
apiVersion: extensions/v1beta1
1+
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: resnet-deployment
55
spec:
66
replicas: 3
7+
selector:
8+
matchLabels:
9+
app: resnet-server
710
template:
811
metadata:
912
labels:

0 commit comments

Comments
 (0)