mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-12-16 11:27:10 +00:00
nvidia with helm
This commit is contained in:
@ -1,7 +1,17 @@
|
|||||||
- name: Aplicar o stolon
|
- name: Adicionar repositório Helm do nvida gpu
|
||||||
become: yes
|
command: >
|
||||||
become_user: fenix
|
helm repo add nvidia https://nvidia.github.io/gpu-operator
|
||||||
shell: |
|
ignore_errors: yes
|
||||||
kubectl apply -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.17.1/deployments/static/nvidia-device-plugin.yml
|
|
||||||
|
- name: Atualizar repositórios Helm
|
||||||
|
command: helm repo update
|
||||||
|
|
||||||
|
- name: Instalar nvida gpu Driver via Helm
|
||||||
|
command: helm upgrade --install nvidia-operator nvidia/gpu-operator --namespace gpu-operator --create-namespace
|
||||||
|
register: resultado_nvidia
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG: /home/fenix/.kube/config
|
KUBECONFIG: /home/fenix/.kube/config
|
||||||
|
|
||||||
|
- name: Mostrar resultado do nvida gpu Driver
|
||||||
|
debug:
|
||||||
|
var: resultado_nvidia.stdout_lines
|
||||||
Reference in New Issue
Block a user