Skip to content

Commit

Permalink
update: gpu overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Oct 18, 2023
1 parent e24e1a3 commit 3afcd3e
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ patches:
value: device-plugin-config
- op: add
path: /spec/devicePlugin/config/default
value: Tesla-T4-time-sliced
value: Tesla-T4
- op: replace
path: /spec/gfd/enabled
value: true
Expand All @@ -25,10 +25,10 @@ patches:
- op: add
path: /data
value:
Tesla-T4-time-sliced: |-
Tesla-T4: |-
version: v1
sharing:
timeSlicing:
resources:
- name: nvidia.com/gpu
replicas: 2
replicas: 2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ patches:
- op: add
path: /data
value:
Tesla-T4-time-sliced: |-
Tesla-T4: |-
version: v1
sharing:
timeSlicing:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

patches:
- target:
kind: ClusterPolicy
name: gpu-cluster-policy
patch: |-
- op: add
path: /spec/devicePlugin/config/name
value: device-plugin-config
- op: add
path: /spec/devicePlugin/config/default
value: A100-SXM4-40GB
- op: replace
path: /spec/gfd/enabled
value: true
- target:
kind: ConfigMap
name: device-plugin-config
patch: |-
- op: add
path: /data
value:
A100-SXM4-40GB: |-
version: v1
sharing:
timeSlicing:
resources:
- name: nvidia.com/gpu
replicas: 8
- name: nvidia.com/mig-1g.5gb
replicas: 1
- name: nvidia.com/mig-2g.10gb
replicas: 2
- name: nvidia.com/mig-3g.20gb
replicas: 3
- name: nvidia.com/mig-7g.40gb
replicas: 7

Check failure on line 42 in gpu-operator-certified/instance/overlays/time-slicing-8-a100/kustomization.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

42:32 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit 3afcd3e

Please sign in to comment.