Просмотр исходного кода

Merge pull request #1908 from porter-dev/belanger/add-spot-instance-bid-price

Add spot bid price to spot instances
abelanger5 4 лет назад
Родитель
Сommit
b21e71e747
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      api/server/handlers/infra/forms.go

+ 8 - 0
api/server/handlers/infra/forms.go

@@ -384,6 +384,14 @@ tabs:
       label: Enable spot instances for this cluster.
       settings:
         default: false
+  - name: spot_instance_price
+    show_if: spot_instances_enabled
+    contents:
+    - type: string-input
+      label: Assign a bid price for the spot instance.
+      variable: spot_price
+      required: true
+      placeholder: "ex: 0.05"
 `
 
 const gcrForm = `name: GCR