Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

kubernetes: add test to check CPU constrains #309

Closed
devimc opened this issue May 17, 2018 · 1 comment
Closed

kubernetes: add test to check CPU constrains #309

devimc opened this issue May 17, 2018 · 1 comment
Assignees

Comments

@devimc
Copy link

devimc commented May 17, 2018

Next yaml can be used as base for this test, but it needs to be improved to check the constrains

apiVersion: v1
kind: Pod
metadata:
  name: cpu-demo
  namespace: sandbox
spec:
  containers:
  - name: cpu0
    image: debian
    resources:
      limits:
        cpu: "1"
    args:
    - "bash"
    tty: true
    stdin: true
  - name: cpu1
    image: debian
    resources:
      limits:
        cpu: "3"
    args:
    - "bash"
    - "-c"
    - "sleep 5; nproc"
    tty: true
    stdin: true
@GabyCT
Copy link
Contributor

GabyCT commented Jun 6, 2018

I will work on this

GabyCT added a commit to GabyCT/tests-1 that referenced this issue Jun 6, 2018
This will verify cpu constraints like limits and requests.

Fixes kata-containers#309

Signed-off-by: Gabriela Cervantes <[email protected]>
GabyCT added a commit to GabyCT/tests-1 that referenced this issue Jun 7, 2018
This will verify cpu constraints like limits and requests.

Fixes kata-containers#309

Signed-off-by: Gabriela Cervantes <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants