-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] PoC ResourceClass #3
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Device | ||
metadata: | ||
name: nvidia-tesla-gpu | ||
labels: | ||
type: nvidia-gpu | ||
quantity: "8" | ||
compute-ability: "3.7" | ||
memory: 10Gi | ||
ecc: "true" | ||
family: tesla | ||
nvlink: "true" | ||
model: k80 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
kind: ResourceClass | ||
metadata: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [root@dell-r620-01 kubernetes]# kubectl get resourceclass my.rc2 -o yaml
|
||
name: my.rc2 | ||
spec: | ||
resourceSelector: | ||
- | ||
matchExpressions: | ||
- | ||
key: "Type" | ||
operator: "In" | ||
values: | ||
- "nvidia-gpu" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[root@dell-r620-01 kubernetes]# kubectl get node mynode -o yaml
apiVersion: v1
kind: Node
metadata:
annotations:
node.alpha.kubernetes.io/ttl: "0"
volumes.kubernetes.io/controller-managed-attach-detach: "true"
creationTimestamp: 2017-05-24T16:32:26Z
labels:
beta.kubernetes.io/arch: amd64
beta.kubernetes.io/os: linux
uid: 927af813-409e-11e7-80f5-bc305bf4e400
spec:
externalID: dell-r620-01.perf.lab.eng.rdu.redhat.com
status:
addresses:
type: InternalIP
type: Hostname
type: LegacyHostIP
allocatable:
cpu: "16"
memory: 131714184Ki
pods: "110"
capacity:
cpu: "16"
memory: 131816584Ki
pods: "110"
conditions:
daemonEndpoints:
kubeletEndpoint:
Port: 10250
images:
sizeBytes: 3158843585
sizeBytes: 3158843585
sizeBytes: 2357991939