Skip to content

Commit

Permalink
Update all dockerhub references to nvcr.io
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Klues <[email protected]>
  • Loading branch information
klueska committed Feb 16, 2021
1 parent 732dff1 commit 9a3d866
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ metadata:
spec:
containers:
- name: cuda-container
image: nvidia/cuda:9.0-devel
image: nvcr.io/nvidia/cuda:9.0-devel
resources:
limits:
nvidia.com/gpu: 2 # requesting 2 GPUs
- name: digits-container
image: nvidia/digits:6.0
image: nvcr.io/nvidia/digits:20.12-tensorflow-py3
resources:
limits:
nvidia.com/gpu: 2 # requesting 2 GPUs
Expand Down Expand Up @@ -306,14 +306,14 @@ easily be modified to work with any available tag or branch.
#### Build
Option 1, pull the prebuilt image from [Docker Hub](https://hub.docker.com/r/nvidia/k8s-device-plugin):
```shell
$ docker pull nvidia/k8s-device-plugin:v0.8.1
$ docker tag nvidia/k8s-device-plugin:v0.8.1 nvidia/k8s-device-plugin:devel
$ docker pull nvcr.io/nvidia/k8s-device-plugin:v0.8.1
$ docker tag nvcr.io/nvidia/k8s-device-plugin:v0.8.1 nvcr.io/nvidia/k8s-device-plugin:devel
```

Option 2, build without cloning the repository:
```shell
$ docker build \
-t nvidia/k8s-device-plugin:devel \
-t nvcr.io/nvidia/k8s-device-plugin:devel \
-f docker/amd64/Dockerfile.ubuntu16.04 \
https://github.com/NVIDIA/k8s-device-plugin.git#v0.8.1
```
Expand All @@ -322,7 +322,7 @@ Option 3, if you want to modify the code:
```shell
$ git clone https://github.com/NVIDIA/k8s-device-plugin.git && cd k8s-device-plugin
$ docker build \
-t nvidia/k8s-device-plugin:devel \
-t nvcr.io/nvidia/k8s-device-plugin:devel \
-f docker/amd64/Dockerfile.ubuntu16.04 \
.
```
Expand All @@ -336,7 +336,7 @@ $ docker run \
--cap-drop=ALL \
--network=none \
-v /var/lib/kubelet/device-plugins:/var/lib/kubelet/device-plugins \
nvidia/k8s-device-plugin:devel
nvcr.io/nvidia/k8s-device-plugin:devel
```

With compatibility for the `CPUManager` static policy:
Expand All @@ -346,7 +346,7 @@ $ docker run \
--privileged \
--network=none \
-v /var/lib/kubelet/device-plugins:/var/lib/kubelet/device-plugins \
nvidia/k8s-device-plugin:devel --pass-device-specs
nvcr.io/nvidia/k8s-device-plugin:devel --pass-device-specs
```

### Without Docker
Expand Down
2 changes: 1 addition & 1 deletion deployments/helm/nvidia-device-plugin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace: kube-system

imagePullSecrets: []
image:
repository: nvidia/k8s-device-plugin
repository: nvcr.io/nvidia/k8s-device-plugin
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
# See https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
priorityClassName: "system-node-critical"
containers:
- image: nvidia/k8s-device-plugin:v0.8.1
- image: nvcr.io/nvidia/k8s-device-plugin:v0.8.1
name: nvidia-device-plugin-ctr
args: ["--fail-on-init-error=false"]
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
# See https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
priorityClassName: "system-node-critical"
containers:
- image: nvidia/k8s-device-plugin:v0.8.1
- image: nvcr.io/nvidia/k8s-device-plugin:v0.8.1
name: nvidia-device-plugin-ctr
args: ["--fail-on-init-error=false", "--pass-device-specs"]
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion nvidia-device-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
# See https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
priorityClassName: "system-node-critical"
containers:
- image: nvidia/k8s-device-plugin:v0.8.1
- image: nvcr.io/nvidia/k8s-device-plugin:v0.8.1
name: nvidia-device-plugin-ctr
args: ["--fail-on-init-error=false"]
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion pod1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
restartPolicy: OnFailure
containers:
- image: nvidia/cuda
- image: nvcr.io/nvidia/cuda:9.0-devel
name: pod1-ctr
command: ["sleep"]
args: ["100000"]
Expand Down

0 comments on commit 9a3d866

Please sign in to comment.