-
Notifications
You must be signed in to change notification settings - Fork 408
Closed
Labels
Milestone
Description
What is your proposal:
Support kata container to use koordinator resources
Why is this needed:
For isolation requirements, I want to use kata container to run offline tasks, which is co-located with online tasks in a cluster.
Current status:
Pod yaml:
apiVersion: v1
kind: Pod
metadata:
name: test-kata
spec:
runtimeClassName: kata
containers:
- name: anolisos
image: openanolis/anolisos:8.6-x86_64
command: ["sleep", "1d"]
resources:
limits:
koordinator.sh/batch-cpu: "4000"
koordinator.sh/batch-memory: 4Gi
requests:
koordinator.sh/batch-cpu: "4000"
koordinator.sh/batch-memory: 4Gi
securityContext:
privileged: true
nodeName: host1
resource info in container:
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 77
On-line CPU(s) list: 0-76
Thread(s) per core: 1
Core(s) per socket: 77
Socket(s): 1
....
# free -h
total used free shared buff/cache available
Mem: 1.9Gi 144Mi 1.8Gi 4.0Mi 22Mi 1.8Gi
Swap: 0B 0B 0B
kata config: configuration.toml
default_vcpus = 1
default_memory = 2048
expect result: cpu: 5core (4c+1c),memory:6g (4g+2g)
Reactions are currently unavailable