Skip to content

Commit

Permalink
add nvidia.com/gpu to addons
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Jun 7, 2018
1 parent 83034c1 commit e91bc93
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,9 @@ spec:
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: nvidia.com/gpu
operator: Equal
value: "true"
effect: NoSchedule
nodeSelector:
beta.kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: nvidia.com/gpu
operator: Equal
value: "true"
effect: NoSchedule
volumes:
- name: kube-dns-config
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ spec:
labels:
k8s-app: kubernetes-dashboard
spec:
tolerations:
- key: nvidia.com/gpu
operator: Equal
value: "true"
effect: NoSchedule
containers:
- args:
- --auto-generate-certificates
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ spec:
labels:
k8s-app: metrics-server
spec:
tolerations:
- key: nvidia.com/gpu
operator: Equal
value: "true"
effect: NoSchedule
serviceAccountName: metrics-server
containers:
- name: metrics-server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ spec:
app: helm
name: tiller
spec:
tolerations:
- key: nvidia.com/gpu
operator: Equal
value: "true"
effect: NoSchedule
serviceAccountName: tiller
containers:
- env:
Expand Down

0 comments on commit e91bc93

Please sign in to comment.