Skip to content
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

DRA: support for claim resources with resourcecliam #3334

Open
cyclinder opened this issue Mar 29, 2024 · 0 comments
Open

DRA: support for claim resources with resourcecliam #3334

cyclinder opened this issue Mar 29, 2024 · 0 comments
Assignees

Comments

@cyclinder
Copy link
Collaborator

What would you like to be added?

support for claim resources with resourcecliam:

apiVersion: network.resource.spidernet.io/v1alpha1
kind: SpiderClaimParameters
metadata:
  name: demo
spec:
  resources:
    spidernet.io/shared_rdma_netdevice: 1
    spidernet.io/sriov_rdma_netdevices 1
---
apiVersion: resource.k8s.io/v1alpha1
kind: ResourceClaimTemplate
metadata:
  name: demo-template
spec:
  spec:
    resourceClassName: network.spidernet.io           
    parametersRef:
      apiGroup: network.resource.spidernet.io/v1alpha1
      kind: spiderClaimParameters
      name: demo
---
apiVersion: v1
kind: Pod
metadata:
  name: pod
spec:
  containers:
  - name: demo
    image: ubuntu:2204
    resources:
      limits:
        spidernet.io/shared_rdma_netdevice: 1      
      cliams:
      - demo-rc
  resourceClaims:
  - name: demo-rc
    source:
      resourceClaimTemplate: demo-template

Why is this needed?

No response

How to implement it (if possible)?

No response

Additional context

No response

@cyclinder cyclinder self-assigned this Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant