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

[Feature]: Sharing GPUs among all containers of a K8s pod #69

Open
yx-lamini opened this issue Aug 18, 2024 · 0 comments
Open

[Feature]: Sharing GPUs among all containers of a K8s pod #69

yx-lamini opened this issue Aug 18, 2024 · 0 comments

Comments

@yx-lamini
Copy link

Suggestion Description

main-container requests GPU, rocm-smi-exporter-sidecar is another container of the pod; we'd

apiVersion: v1
kind: Pod
metadata:
  name: {{ pod-name }}
  labels:
    exporter: rocm-smi
spec:
  containers:
  - name: main-container
    image: main-container-imamge:v1
    resources:
      limits:
        amd.com/gpu: {{ count }}
  # Add the following sidecar container to your pod
  - name: rocm-smi-exporter-sidecar
    image: rocm-smi-exporter
    args: ["lrocm-smi-exporter", "--port=9001"]
    imagePullPolicy: Always
    ports:
    - containerPort: 9001
      name: prometheus

Operating System

No response

GPU

No response

ROCm Component

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant