فهرست منبع

Merge pull request #1916 from porter-dev/staging

EKS Infra form improvements -> production
abelanger5 4 سال پیش
والد
کامیت
37fc751602
1فایلهای تغییر یافته به همراه13 افزوده شده و 0 حذف شده
  1. 13 0
      api/server/handlers/infra/forms.go

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

@@ -379,11 +379,24 @@ tabs:
       required: true
       required: true
       placeholder: my-cluster
       placeholder: my-cluster
       variable: cluster_name
       variable: cluster_name
+    - type: number-input
+      label: Maximum number of EC2 instances to create in the application autoscaling group.
+      variable: max_instances
+      placeholder: "ex: 10"
+      settings:
+        default: 10
     - type: checkbox
     - type: checkbox
       variable: spot_instances_enabled
       variable: spot_instances_enabled
       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 (optional).
+      variable: spot_price
+      placeholder: "ex: 0.05"
 `
 `
 
 
 const gcrForm = `name: GCR
 const gcrForm = `name: GCR