Skip to content

Commit

Permalink
adding a sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed May 24, 2024
1 parent ba229fa commit b07a1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terraform/gpu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ resource "aws_eks_node_group" "this" {
ami_type = "AL2_x86_64_GPU"
capacity_type = "ON_DEMAND"
disk_size = 20
instance_types = ["g4dn.12xlarge"]
instance_types = ["g4dn.xlarge"]

depends_on = [
aws_iam_role_policy_attachment.node_AmazonEC2ContainerRegistryReadOnly,
Expand Down Expand Up @@ -137,8 +137,11 @@ resource "null_resource" "validator" {

provisioner "local-exec" {
command = <<EOT
sleep 30
kubectl apply -f ../eks/daemon/gpuBurner.yaml
sleep 30
kubectl create -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.15.0/deployments/static/nvidia-device-plugin.yml
sleep 30
if go test ${var.test_dir} -eksClusterName ${aws_eks_cluster.this.name} -computeType=EKS -v -eksDeploymentStrategy=DAEMON -eksGpuType=nvidia; then
# Get all pods and describe them
kubectl get pods --all-namespaces -o wide > pods.txt
Expand Down

0 comments on commit b07a1a6

Please sign in to comment.