فهرست منبع

add spot price to spot instances

Alexander Belanger 4 سال پیش
والد
کامیت
2c9ab334b1
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.
       label: Enable spot instances for this cluster.
       settings:
       settings:
         default: false
         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
 const gcrForm = `name: GCR