Skip to content

Commit

Permalink
aws: create gpu node on setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrildiagne committed Oct 25, 2019
1 parent ba6d66b commit 059c711
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions providers/aws/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ function create_cluster() {
- name: default
instanceType: m5.large
desiredCapacity: 2
# - name: gpu
# instanceType: p2.xlarge
# desiredCapacity: 1
# minSize: 0
# # iam:
# # withAddonPolicies:
# # autoScaler: true
# # tags:
# # k8s.io/cluster-autoscaler/node-template/taint/dedicated: nvidia.com/gpu=true
# # k8s.io/cluster-autoscaler/node-template/label/nvidia.com/gpu: "true"
# # k8s.io/cluster-autoscaler/enabled: "true"
# # labels:
# # lifecycle: Ec2Spot
# # nvidia.com/gpu: "true"
# # k8s.amazonaws.com/accelerator: nvidia-tesla
# # taints:
# # nvidia.com/gpu: "true:NoSchedule"
- name: gpu
instanceType: p2.xlarge
desiredCapacity: 1
minSize: 0
# iam:
# withAddonPolicies:
# autoScaler: true
# tags:
# k8s.io/cluster-autoscaler/node-template/taint/dedicated: nvidia.com/gpu=true
# k8s.io/cluster-autoscaler/node-template/label/nvidia.com/gpu: "true"
# k8s.io/cluster-autoscaler/enabled: "true"
# labels:
# lifecycle: Ec2Spot
# nvidia.com/gpu: "true"
# k8s.amazonaws.com/accelerator: nvidia-tesla
# taints:
# nvidia.com/gpu: "true:NoSchedule"
EOF
}

Expand Down

0 comments on commit 059c711

Please sign in to comment.