mirror of https://github.com/rancher/ui.git
Add new ec2 metadata http endpoint/tokens props on node template
Sort ec2 yaml keys Fix formatting for ec2 node template handbars template rancher/rancher#28178
This commit is contained in:
parent
d09c349bde
commit
9ebb8b0f6e
|
|
@ -11,6 +11,7 @@ import NodeDriver from 'shared/mixins/node-driver';
|
||||||
import layout from './template';
|
import layout from './template';
|
||||||
import { INSTANCE_TYPES, nameFromResource, tagsFromResource, REGIONS } from 'shared/utils/amazon';
|
import { INSTANCE_TYPES, nameFromResource, tagsFromResource, REGIONS } from 'shared/utils/amazon';
|
||||||
import { randomStr } from 'shared/utils/util';
|
import { randomStr } from 'shared/utils/util';
|
||||||
|
import { isEmpty } from '@ember/utils';
|
||||||
|
|
||||||
let RANCHER_GROUP = 'rancher-nodes';
|
let RANCHER_GROUP = 'rancher-nodes';
|
||||||
|
|
||||||
|
|
@ -46,9 +47,9 @@ export default Component.extend(NodeDriver, {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
setProperties(this, {
|
setProperties(this, {
|
||||||
clients: EmberObject.create(),
|
clients: {},
|
||||||
allSubnets: []
|
allSubnets: []
|
||||||
})
|
});
|
||||||
|
|
||||||
let cur = get(this, 'config.securityGroup');
|
let cur = get(this, 'config.securityGroup');
|
||||||
|
|
||||||
|
|
@ -76,6 +77,14 @@ export default Component.extend(NodeDriver, {
|
||||||
|
|
||||||
set(this, 'tags', tags);
|
set(this, 'tags', tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isEmpty(get(this, 'config.httpEndpoint'))) {
|
||||||
|
set(this, 'config.httpEndpoint', 'enabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isEmpty(get(this, 'config.httpTokens'))) {
|
||||||
|
set(this, 'config.httpTokens', 'optional');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
willDestroyElement() {
|
willDestroyElement() {
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
{{#accordion-list showExpandAll=false as | al expandFn |}}
|
{{#accordion-list showExpandAll=false as |al expandFn|}}
|
||||||
<div class="over-hr">
|
<div class="over-hr">
|
||||||
<span>
|
<span>
|
||||||
{{driverOptionsTitle}}
|
{{driverOptionsTitle}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#accordion-list-item
|
{{#accordion-list-item
|
||||||
title=(t "nodeDriver.amazonec2.access.title")
|
title=(t "nodeDriver.amazonec2.access.title")
|
||||||
detail=(t "nodeDriver.amazonec2.access.detail")
|
detail=(t "nodeDriver.amazonec2.access.detail")
|
||||||
expandAll=expandAll
|
expandAll=expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=true
|
||||||
}}
|
}}
|
||||||
{{#unless hideRegionSelection}}
|
{{#unless hideRegionSelection}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -25,16 +24,15 @@
|
||||||
onchange={{action (mut config.region) value="target.value"}}
|
onchange={{action (mut config.region) value="target.value"}}
|
||||||
>
|
>
|
||||||
{{#each regionChoices as |choice|}}
|
{{#each regionChoices as |choice|}}
|
||||||
<option
|
<option value={{choice}} selected={{eq config.region choice}}>
|
||||||
value={{choice}}
|
|
||||||
selected={{eq config.region choice}}
|
|
||||||
>
|
|
||||||
{{choice}}
|
{{choice}}
|
||||||
</option>
|
</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div>{{config.region}}</div>
|
<div>
|
||||||
|
{{config.region}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -59,9 +57,10 @@
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
{{t "nodeDriver.amazonec2.accessKey.label"}}
|
{{t "nodeDriver.amazonec2.accessKey.label"}}
|
||||||
</label>
|
</label>
|
||||||
<div>{{config.accessKey}}</div>
|
<div>
|
||||||
|
{{config.accessKey}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-4">
|
<div class="col span-4">
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
{{t "nodeDriver.amazonec2.secretKey.label"}}
|
{{t "nodeDriver.amazonec2.secretKey.label"}}
|
||||||
|
|
@ -80,14 +79,13 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/accordion-list-item}}
|
{{/accordion-list-item}}
|
||||||
|
|
||||||
<div class="{{unless (gte step 2) "hide"}}">
|
<div class="{{unless (gte step 2) "hide"}}">
|
||||||
{{#accordion-list-item
|
{{#accordion-list-item
|
||||||
title=(t "nodeDriver.amazonec2.zone.title")
|
title=(t "nodeDriver.amazonec2.zone.title")
|
||||||
detail=(t "nodeDriver.amazonec2.zone.detail")
|
detail=(t "nodeDriver.amazonec2.zone.detail")
|
||||||
expandAll=expandAll
|
expandAll=expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=true
|
||||||
}}
|
}}
|
||||||
{{#if (eq step 2)}}
|
{{#if (eq step 2)}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -100,16 +98,12 @@
|
||||||
onchange={{action (mut selectedZone) value="target.value"}}
|
onchange={{action (mut selectedZone) value="target.value"}}
|
||||||
>
|
>
|
||||||
{{#each zoneChoices as |choice|}}
|
{{#each zoneChoices as |choice|}}
|
||||||
<option
|
<option value={{choice}} selected={{eq selectedZone choice}}>
|
||||||
value={{choice}}
|
|
||||||
selected={{eq selectedZone choice}}
|
|
||||||
>
|
|
||||||
{{choice}}
|
{{choice}}
|
||||||
</option>
|
</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="acc-label pt-20">
|
<label class="acc-label pt-20">
|
||||||
{{t "nodeDriver.amazonec2.subnet"}}
|
{{t "nodeDriver.amazonec2.subnet"}}
|
||||||
|
|
@ -120,10 +114,7 @@
|
||||||
<hr class="mt-20 mb-20" />
|
<hr class="mt-20 mb-20" />
|
||||||
<div class="radio">
|
<div class="radio">
|
||||||
<label class="acc-label pb-0">
|
<label class="acc-label pb-0">
|
||||||
{{radio-button
|
{{radio-button selection=selectedSubnet value=choice.value}}
|
||||||
selection=selectedSubnet
|
|
||||||
value=choice.value
|
|
||||||
}}
|
|
||||||
{{choice.label}}
|
{{choice.label}}
|
||||||
{{#each choice.tags as |tag|}}
|
{{#each choice.tags as |tag|}}
|
||||||
<span class="tag-xs bg-info mr-5">
|
<span class="tag-xs bg-info mr-5">
|
||||||
|
|
@ -133,13 +124,10 @@
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="radio">
|
<div class="radio">
|
||||||
<label class="ml-20">
|
<label class="ml-20">
|
||||||
{{radio-button
|
{{radio-button selection=selectedSubnet value=choice.value}}
|
||||||
selection=selectedSubnet
|
|
||||||
value=choice.value
|
|
||||||
}}
|
|
||||||
<i
|
<i
|
||||||
class="icon icon-level-down text-muted"
|
class="icon icon-level-down text-muted"
|
||||||
style="transform: scaleX(-1) rotate(90deg);"
|
style="transform: scaleX(-1) rotate(90deg);"
|
||||||
|
|
@ -165,7 +153,8 @@
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
{{t "nodeDriver.amazonec2.availabilityZone"}}
|
{{t "nodeDriver.amazonec2.availabilityZone"}}
|
||||||
</label>
|
</label>
|
||||||
{{config.region}}{{config.zone}}
|
{{config.region}}
|
||||||
|
{{config.zone}}
|
||||||
</div>
|
</div>
|
||||||
<div class="span-6">
|
<div class="span-6">
|
||||||
<label class="acc-label pt-20">
|
<label class="acc-label pt-20">
|
||||||
|
|
@ -180,7 +169,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/accordion-list-item}}
|
{{/accordion-list-item}}
|
||||||
|
|
||||||
{{#if (eq step 2)}}
|
{{#if (eq step 2)}}
|
||||||
{{top-errors errors=errors}}
|
{{top-errors errors=errors}}
|
||||||
{{save-cancel
|
{{save-cancel
|
||||||
|
|
@ -191,23 +179,19 @@
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="{{unless (gte step 3) "hide"}}">
|
<div class="{{unless (gte step 3) "hide"}}">
|
||||||
{{#accordion-list-item
|
{{#accordion-list-item
|
||||||
title=(t "nodeDriver.amazonec2.securityGroup.title")
|
title=(t "nodeDriver.amazonec2.securityGroup.title")
|
||||||
detail=(t "nodeDriver.amazonec2.securityGroup.detail")
|
detail=(t "nodeDriver.amazonec2.securityGroup.detail")
|
||||||
expandAll=expandAll
|
expandAll=expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=true
|
||||||
}}
|
}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{#if (eq step 3)}}
|
{{#if (eq step 3)}}
|
||||||
<div class="radio pt-10">
|
<div class="radio pt-10">
|
||||||
<label>
|
<label>
|
||||||
{{radio-button
|
{{radio-button selection=whichSecurityGroup value="default"}}
|
||||||
selection=whichSecurityGroup
|
|
||||||
value="default"
|
|
||||||
}}
|
|
||||||
{{t
|
{{t
|
||||||
"nodeDriver.amazonec2.securityGroup.defaultCreate"
|
"nodeDriver.amazonec2.securityGroup.defaultCreate"
|
||||||
groupName=defaultSecurityGroupName
|
groupName=defaultSecurityGroupName
|
||||||
|
|
@ -215,26 +199,23 @@
|
||||||
}}
|
}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if (and settings.isRancher (not isCustomSecurityGroup))}}
|
{{#if (and settings.isRancher (not isCustomSecurityGroup))}}
|
||||||
<p class="text-info ml-20">
|
<p class="text-info ml-20">
|
||||||
<a href="{{settings.docsBase}}/installation/references/" target="_blank">
|
<a
|
||||||
|
href="{{settings.docsBase}}/installation/references/"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
{{t "nodeDriver.amazonec2.portHelp.link"}}
|
{{t "nodeDriver.amazonec2.portHelp.link"}}
|
||||||
</a>
|
</a>
|
||||||
{{t "nodeDriver.amazonec2.portHelp.text"}}
|
{{t "nodeDriver.amazonec2.portHelp.text"}}
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="radio pt-10">
|
<div class="radio pt-10">
|
||||||
<label>
|
<label>
|
||||||
{{radio-button
|
{{radio-button selection=whichSecurityGroup value="custom"}}
|
||||||
selection=whichSecurityGroup
|
|
||||||
value="custom"
|
|
||||||
}}
|
|
||||||
{{t "nodeDriver.amazonec2.securityGroup.choose"}}
|
{{t "nodeDriver.amazonec2.securityGroup.choose"}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if isCustomSecurityGroup}}
|
{{#if isCustomSecurityGroup}}
|
||||||
<select
|
<select
|
||||||
class="form-control existing-security-groups"
|
class="form-control existing-security-groups"
|
||||||
|
|
@ -246,7 +227,10 @@
|
||||||
value={{choice.name}}
|
value={{choice.name}}
|
||||||
selected={{array-includes selectedSecurityGroup choice.name}}
|
selected={{array-includes selectedSecurityGroup choice.name}}
|
||||||
>
|
>
|
||||||
{{choice.name}} ({{choice.id}})
|
{{choice.name}}
|
||||||
|
(
|
||||||
|
{{choice.id}}
|
||||||
|
)
|
||||||
</option>
|
</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -256,7 +240,9 @@
|
||||||
{{#if (is-array config.securityGroup)}}
|
{{#if (is-array config.securityGroup)}}
|
||||||
<div class="comma-seperated-list">
|
<div class="comma-seperated-list">
|
||||||
{{#each config.securityGroup as |group|}}
|
{{#each config.securityGroup as |group|}}
|
||||||
<span>{{group}}</span>
|
<span>
|
||||||
|
{{group}}
|
||||||
|
</span>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
@ -266,7 +252,6 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/accordion-list-item}}
|
{{/accordion-list-item}}
|
||||||
|
|
||||||
{{#if (eq step 3)}}
|
{{#if (eq step 3)}}
|
||||||
{{top-errors errors=errors}}
|
{{top-errors errors=errors}}
|
||||||
{{save-cancel
|
{{save-cancel
|
||||||
|
|
@ -277,14 +262,13 @@
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="{{unless (gte step 4) "hide"}}">
|
<div class="{{unless (gte step 4) "hide"}}">
|
||||||
{{#accordion-list-item
|
{{#accordion-list-item
|
||||||
title=(t "nodeDriver.amazonec2.instance.title")
|
title=(t "nodeDriver.amazonec2.instance.title")
|
||||||
detail=(t "nodeDriver.amazonec2.instance.detail")
|
detail=(t "nodeDriver.amazonec2.instance.detail")
|
||||||
expandAll=expandAll
|
expandAll=expandAll
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
expandOnInit=true
|
expandOnInit=true
|
||||||
}}
|
}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
|
|
@ -301,7 +285,6 @@
|
||||||
optionGroupPath="group"
|
optionGroupPath="group"
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
{{t "nodeDriver.amazonec2.requestSpotInstance.label"}}
|
{{t "nodeDriver.amazonec2.requestSpotInstance.label"}}
|
||||||
|
|
@ -312,13 +295,12 @@
|
||||||
id="amazonec2-requestspotinstance"
|
id="amazonec2-requestspotinstance"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked=config.requestSpotInstance
|
checked=config.requestSpotInstance
|
||||||
}}
|
}}
|
||||||
{{t "nodeDriver.amazonec2.requestSpotInstance.enable"}}
|
{{t "nodeDriver.amazonec2.requestSpotInstance.enable"}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if config.requestSpotInstance}}
|
{{#if config.requestSpotInstance}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
|
|
@ -340,7 +322,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label" for="amazonec2-rootsize">
|
<label class="acc-label" for="amazonec2-rootsize">
|
||||||
|
|
@ -359,7 +340,6 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
|
|
@ -371,14 +351,71 @@
|
||||||
id="amazonec2-encrypt-ebs-vol"
|
id="amazonec2-encrypt-ebs-vol"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked=config.encryptEbsVolume
|
checked=config.encryptEbsVolume
|
||||||
}}
|
}}
|
||||||
{{t "nodeDriver.amazonec2.encryptEbsVolume.radioLabel"}}
|
{{t "nodeDriver.amazonec2.encryptEbsVolume.radioLabel"}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col span-6">
|
||||||
|
<div>
|
||||||
|
<label class="acc-label">
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpEndpoint.label"}}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="radio mb-0">
|
||||||
|
<label class="mr-5">
|
||||||
|
{{radio-button
|
||||||
|
selection=config.httpEndpoint
|
||||||
|
value="enabled"
|
||||||
|
name="http-endpoint"
|
||||||
|
}}
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpEndpoint.enabled"}}
|
||||||
|
</label>
|
||||||
|
<label>
|
||||||
|
{{radio-button
|
||||||
|
selection=config.httpEndpoint
|
||||||
|
value="disabled"
|
||||||
|
name="http-endpoint"
|
||||||
|
}}
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpEndpoint.disabled"}}
|
||||||
|
</label>
|
||||||
|
<div class="protip mt-5">
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpEndpoint.protip"}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col span-6">
|
||||||
|
<div>
|
||||||
|
<label class="acc-label">
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpTokens.label"}}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="radio mb-0">
|
||||||
|
<label class="mr-5">
|
||||||
|
{{radio-button
|
||||||
|
selection=config.httpTokens
|
||||||
|
value="required"
|
||||||
|
name="http-tokens"
|
||||||
|
}}
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpTokens.required"}}
|
||||||
|
</label>
|
||||||
|
<label>
|
||||||
|
{{radio-button
|
||||||
|
selection=config.httpTokens
|
||||||
|
value="optional"
|
||||||
|
name="http-tokens"
|
||||||
|
}}
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpTokens.optional"}}
|
||||||
|
</label>
|
||||||
|
<div class="protip mt-5">
|
||||||
|
{{t "nodeDriver.amazonec2.metadata.httpTokens.protip"}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{#if config.encryptEbsVolume}}
|
{{#if config.encryptEbsVolume}}
|
||||||
<div class="col span-6 offset-6">
|
<div class="col span-6 offset-6">
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
|
|
@ -394,7 +431,7 @@
|
||||||
<NewSelect
|
<NewSelect
|
||||||
class="form-control"
|
class="form-control"
|
||||||
@value={{mut config.kmsKey}}
|
@value={{mut config.kmsKey}}
|
||||||
@content={{ allKmsKeys }}
|
@content={{allKmsKeys}}
|
||||||
@useContentForDefaultValue={{true}}
|
@useContentForDefaultValue={{true}}
|
||||||
@optionValuePath="KeyArn"
|
@optionValuePath="KeyArn"
|
||||||
@optionLabelPath="KeyArn"
|
@optionLabelPath="KeyArn"
|
||||||
|
|
@ -402,8 +439,6 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
<!-- not sure if we are going to show these yet but we can -->
|
<!-- not sure if we are going to show these yet but we can -->
|
||||||
{{#unless true}}
|
{{#unless true}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -419,7 +454,6 @@
|
||||||
value=config.volumeType
|
value=config.volumeType
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
|
|
@ -431,15 +465,15 @@
|
||||||
id="amazonec2-use-opt-instance"
|
id="amazonec2-use-opt-instance"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked=config.useEbsOptimizedInstance
|
checked=config.useEbsOptimizedInstance
|
||||||
}}
|
}}
|
||||||
{{t "nodeDriver.amazonec2.useEbsOptimizedInstance.radioLabel"}}
|
{{t "nodeDriver.amazonec2.useEbsOptimizedInstance.radioLabel"
|
||||||
|
}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label" for="amazonec2-ami">
|
<label class="acc-label" for="amazonec2-ami">
|
||||||
|
|
@ -464,7 +498,6 @@
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label" for="amazonec2-iam">
|
<label class="acc-label" for="amazonec2-iam">
|
||||||
{{t "nodeDriver.amazonec2.iam.label"}}
|
{{t "nodeDriver.amazonec2.iam.label"}}
|
||||||
|
|
@ -478,7 +511,6 @@
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label" for="amazonec2-sshUser">
|
<label class="acc-label" for="amazonec2-sshUser">
|
||||||
|
|
@ -492,7 +524,6 @@
|
||||||
value=config.sshUser
|
value=config.sshUser
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label">
|
<label class="acc-label">
|
||||||
{{t "nodeDriver.amazonec2.privateIp.label"}}
|
{{t "nodeDriver.amazonec2.privateIp.label"}}
|
||||||
|
|
@ -503,13 +534,12 @@
|
||||||
id="amazonec2-privateip"
|
id="amazonec2-privateip"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked=config.privateAddressOnly
|
checked=config.privateAddressOnly
|
||||||
}}
|
}}
|
||||||
{{t "nodeDriver.amazonec2.onlyPrivate.label"}}
|
{{t "nodeDriver.amazonec2.onlyPrivate.label"}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-12">
|
<div class="col span-12">
|
||||||
{{form-key-value
|
{{form-key-value
|
||||||
|
|
@ -520,41 +550,21 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/accordion-list-item}}
|
{{/accordion-list-item}}
|
||||||
|
|
||||||
<div class="over-hr">
|
<div class="over-hr">
|
||||||
<span>
|
<span>
|
||||||
{{templateOptionsTitle}}
|
{{templateOptionsTitle}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{form-name-description model=model nameRequired=true rowClass="row mb-10"}}
|
||||||
{{form-name-description
|
|
||||||
model=model
|
|
||||||
nameRequired=true
|
|
||||||
rowClass="row mb-10"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{form-user-labels
|
{{form-user-labels
|
||||||
initialLabels=labelResource.labels
|
initialLabels=labelResource.labels
|
||||||
setLabels=(action "setLabels")
|
setLabels=(action "setLabels")
|
||||||
expand=(action expandFn)
|
expand=(action expandFn)
|
||||||
}}
|
}}
|
||||||
|
{{form-node-taints model=model expand=(action expandFn)}}
|
||||||
{{form-node-taints
|
{{form-engine-opts machine=model showEngineUrl=showEngineUrl}}
|
||||||
model=model
|
|
||||||
expand=(action expandFn)
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{form-engine-opts
|
|
||||||
machine=model
|
|
||||||
showEngineUrl=showEngineUrl
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{top-errors errors=errors}}
|
{{top-errors errors=errors}}
|
||||||
|
{{save-cancel save=(action "save") cancel=(action "cancel") editing=editing
|
||||||
{{save-cancel
|
|
||||||
save=(action "save")
|
|
||||||
cancel=(action "cancel")
|
|
||||||
editing=editing
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
{{/accordion-list}}
|
{{/accordion-list}}
|
||||||
|
|
@ -8576,84 +8576,95 @@ nodeDriver:
|
||||||
label: Region
|
label: Region
|
||||||
amazonec2:
|
amazonec2:
|
||||||
access:
|
access:
|
||||||
title: 1. Account Access
|
|
||||||
detail: Choose the region and API Key that will be used to launch EC2 Instances
|
detail: Choose the region and API Key that will be used to launch EC2 Instances
|
||||||
next: "Next: Authenticate & configure nodes"
|
help: Paste in your AWS key pair here. We'll use this key to create your new Instances.
|
||||||
loading: Loading Availability Zone and VPC info from EC2...
|
loading: Loading Availability Zone and VPC info from EC2...
|
||||||
help: "Paste in your AWS key pair here. We'll use this key to create your new Instances."
|
next: 'Next: Authenticate & configure nodes'
|
||||||
zone:
|
title: 1. Account Access
|
||||||
title: 2. Zone and Network
|
|
||||||
detail: Select the Availability Zone and VPC/Subnet for Instances
|
|
||||||
next: "Next: Select a Security Group"
|
|
||||||
loading: Loading security group info from EC2...
|
|
||||||
accessKey:
|
accessKey:
|
||||||
label: Access Key
|
label: Access Key
|
||||||
placeholder: Your AWS access key
|
placeholder: Your AWS access key
|
||||||
secretKey:
|
|
||||||
label: Secret Key
|
|
||||||
placeholder: Your AWS secret key
|
|
||||||
provided: Provided
|
|
||||||
region:
|
|
||||||
label: Region
|
|
||||||
availabilityZone: Availability Zone
|
|
||||||
subnet: VPC/Subnet
|
|
||||||
noSubnet: There are no subnets to choose from
|
|
||||||
securityGroup:
|
|
||||||
title: 3. Security Groups
|
|
||||||
detail: Choose the security groups that will be applied to Instances
|
|
||||||
choose: Choose one or more existing groups
|
|
||||||
defaultExisting: "Standard: Use the existing <code>{groupName}</code> group"
|
|
||||||
defaultCreate: "Standard: Automatically create a <code>{groupName}</code> group"
|
|
||||||
next: "Next: Set Instance options"
|
|
||||||
loading: Loading Instance options...
|
|
||||||
tags:
|
|
||||||
addActionLabel: Add AWS Tag
|
|
||||||
valueLabel: Tags
|
|
||||||
placeholder: e.g. dev
|
|
||||||
instance:
|
|
||||||
title: 4. Instance
|
|
||||||
detail: Customize the EC2 Instance that will be created.
|
|
||||||
portHelp:
|
|
||||||
link: Learn more
|
|
||||||
text: about the ports that will be opened.
|
|
||||||
needs:
|
|
||||||
label: "For {appName} to work correctly your security group will need to allow traffic:"
|
|
||||||
item1: From the {appName} server to <code>TCP</code> port <code>22</code> <span class="text-muted">(SSH to install and configure Docker)</span>
|
|
||||||
item2: From and To all other hosts on <code>UDP</code> ports <code>500</code> and <code>4500</code> <span class="text-muted">(for IPsec networking)</span></li>
|
|
||||||
item3: These rules will <b>not</b> be added automatically.
|
|
||||||
instanceType:
|
|
||||||
label: Instance Type
|
|
||||||
rootSize:
|
|
||||||
label: Root Disk Size
|
|
||||||
unit: GB
|
|
||||||
encryptEbsVolume:
|
|
||||||
label: Encryption
|
|
||||||
radioLabel: Encrypt EBS Volume
|
|
||||||
volumeType:
|
|
||||||
label: Amazon EBS volume type
|
|
||||||
useEbsOptimizedInstance:
|
|
||||||
label: Optimized Instance
|
|
||||||
radioLabel: Create EBS optimized instance
|
|
||||||
ami:
|
ami:
|
||||||
label: AMI
|
label: AMI
|
||||||
placeholder: An Ubuntu AMI
|
placeholder: An Ubuntu AMI
|
||||||
rancherList: RancherOS AMI List
|
rancherList: RancherOS AMI List
|
||||||
sshUser:
|
availabilityZone: Availability Zone
|
||||||
label: SSH User
|
encryptEbsVolume:
|
||||||
placeholder: e.g. ubuntu
|
label: Encryption
|
||||||
|
radioLabel: Encrypt EBS Volume
|
||||||
iam:
|
iam:
|
||||||
label: IAM Instance Profile Name
|
label: IAM Instance Profile Name
|
||||||
placeholder: my-k8s-profile
|
placeholder: my-k8s-profile
|
||||||
privateIp:
|
instance:
|
||||||
label: Private IP
|
detail: Customize the EC2 Instance that will be created.
|
||||||
|
title: 4. Instance
|
||||||
|
instanceType:
|
||||||
|
label: Instance Type
|
||||||
|
metadata:
|
||||||
|
httpEndpoint:
|
||||||
|
label: HTTP Endpoint
|
||||||
|
enabled: Enabled
|
||||||
|
disabled: Disabled
|
||||||
|
protip: Enables or disables the HTTP metadata endpoint on your instances
|
||||||
|
httpTokens:
|
||||||
|
label: HTTP Tokens
|
||||||
|
required: Required
|
||||||
|
optional: Optional
|
||||||
|
protip: Use HTTP Tokens for Instance Metadata Requests
|
||||||
|
needs:
|
||||||
|
item1: 'From the {appName} server to <code>TCP</code> port <code>22</code> <span class="text-muted">(SSH to install and configure Docker)</span>'
|
||||||
|
item2: From and To all other hosts on <code>UDP</code> ports <code>500</code> and <code>4500</code> <span class="text-muted">(for IPsec networking)</span></li>
|
||||||
|
item3: These rules will <b>not</b> be added automatically.
|
||||||
|
label: 'For {appName} to work correctly your security group will need to allow traffic:'
|
||||||
|
noSubnet: There are no subnets to choose from
|
||||||
onlyPrivate:
|
onlyPrivate:
|
||||||
label: Use only private IP address
|
label: Use only private IP address
|
||||||
|
portHelp:
|
||||||
|
link: Learn more
|
||||||
|
text: about the ports that will be opened.
|
||||||
|
privateIp:
|
||||||
|
label: Private IP
|
||||||
|
region:
|
||||||
|
label: Region
|
||||||
requestSpotInstance:
|
requestSpotInstance:
|
||||||
label: Spot Instance
|
|
||||||
enable: Request spot instance
|
enable: Request spot instance
|
||||||
|
label: Spot Instance
|
||||||
|
rootSize:
|
||||||
|
label: Root Disk Size
|
||||||
|
unit: GB
|
||||||
|
secretKey:
|
||||||
|
label: Secret Key
|
||||||
|
placeholder: Your AWS secret key
|
||||||
|
provided: Provided
|
||||||
|
securityGroup:
|
||||||
|
choose: Choose one or more existing groups
|
||||||
|
defaultCreate: 'Standard: Automatically create a <code>{groupName}</code> group'
|
||||||
|
defaultExisting: 'Standard: Use the existing <code>{groupName}</code> group'
|
||||||
|
detail: Choose the security groups that will be applied to Instances
|
||||||
|
loading: Loading Instance options...
|
||||||
|
next: 'Next: Set Instance options'
|
||||||
|
title: 3. Security Groups
|
||||||
spotPrice:
|
spotPrice:
|
||||||
label: Spot Price
|
label: Spot Price
|
||||||
unit: $
|
unit: $
|
||||||
|
sshUser:
|
||||||
|
label: SSH User
|
||||||
|
placeholder: e.g. ubuntu
|
||||||
|
subnet: VPC/Subnet
|
||||||
|
tags:
|
||||||
|
addActionLabel: Add AWS Tag
|
||||||
|
placeholder: e.g. dev
|
||||||
|
valueLabel: Tags
|
||||||
|
useEbsOptimizedInstance:
|
||||||
|
label: Optimized Instance
|
||||||
|
radioLabel: Create EBS optimized instance
|
||||||
|
volumeType:
|
||||||
|
label: Amazon EBS volume type
|
||||||
|
zone:
|
||||||
|
detail: Select the Availability Zone and VPC/Subnet for Instances
|
||||||
|
loading: Loading security group info from EC2...
|
||||||
|
next: 'Next: Select a Security Group'
|
||||||
|
title: 2. Zone and Network
|
||||||
digitalocean:
|
digitalocean:
|
||||||
droplet:
|
droplet:
|
||||||
title: Droplet Options
|
title: Droplet Options
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue