mirror of https://github.com/containers/podman.git
Merge pull request #25029 from robertgzr/play-cdi
Document kube-play CDI support
This commit is contained in:
commit
4cae27b625
|
|
@ -97,6 +97,23 @@ The build considers `foobar` to be the context directory for the build. If there
|
|||
called `foobar`, the image is not built unless the `--build` flag is used. Use `--build=false` to completely
|
||||
disable builds.
|
||||
|
||||
Kube play supports CDI (Container Device Interface) device selectors to share
|
||||
host devices (e.g. GPUs) with containers. The configuration format follows
|
||||
Kubernetes extended resource management:
|
||||
```
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
spec:
|
||||
containers:
|
||||
- name: container
|
||||
resources:
|
||||
limits:
|
||||
nvidia.com/gpu=all: 1
|
||||
```
|
||||
|
||||
To enable sharing host devices, analogous to using the `--device` flag Podman
|
||||
kube supports a custom CDI selector: `podman.io/device=<host device path>`.
|
||||
|
||||
`Kubernetes ConfigMap`
|
||||
|
||||
Kubernetes ConfigMap can be referred as a source of environment variables or volumes in Pods or Deployments.
|
||||
|
|
|
|||
Loading…
Reference in New Issue