small docs fixes

This commit is contained in:
Ionut Craciunescu 2017-07-31 16:01:35 +01:00
parent 847bf0c2e1
commit 4d27d5d93c
5 changed files with 7 additions and 8 deletions

View File

@ -68,7 +68,7 @@ The default volume size for Masters is 64 GB, while the default volume size for
The procedure to resize the root volume works the same way:
* Edit the instance group, set `rootVolumeSize` and/or `rootVolumeType` to the desired values: `kops edit ig nodes`
* If `rootVolumeType` is set to `io1` then you can define the number of Iops by specifing `rootProvisionedIops` (defaults to if not defined 100)
* If `rootVolumeType` is set to `io1` then you can define the number of Iops by specifing `rootVolumeIops` (defaults to 100 if not defined)
* Preview changes: `kops update cluster <clustername>`
* Apply changes: `kops update cluster <clustername> --yes`
* Rolling update to update existing instances: `kops rolling-update cluster --yes`
@ -88,7 +88,7 @@ spec:
rootVolumeType: gp2
```
For example, to set up a 200GB io1 root volume with 100 provisioned Iops, your InstanceGroup spec might look like:
For example, to set up a 200GB io1 root volume with 200 provisioned Iops, your InstanceGroup spec might look like:
```
metadata:
@ -101,7 +101,7 @@ spec:
role: Node
rootVolumeSize: 200
rootVolumeType: io1
rootProvisionedIops: 100
rootProvisionedIops: 200
```
## Creating a new instance group

View File

@ -76,7 +76,7 @@ type InstanceGroupSpec struct {
RootVolumeSize *int32 `json:"rootVolumeSize,omitempty"`
// RootVolumeType is the type of the EBS root volume to use (e.g. gp2)
RootVolumeType *string `json:"rootVolumeType,omitempty"`
// If volume type is io1, then we need to specify the number of Iops. Default: 100
// If volume type is io1, then we need to specify the number of Iops.
RootVolumeIops *int32 `json:"rootVolumeIops,omitempty"`
// RootVolumeOptimization enables EBS optimization for an instance
RootVolumeOptimization *bool `json:"rootVolumeOptimization,omitempty"`

View File

@ -61,7 +61,7 @@ type InstanceGroupSpec struct {
RootVolumeSize *int32 `json:"rootVolumeSize,omitempty"`
// RootVolumeType is the type of the EBS root volume to use (e.g. gp2)
RootVolumeType *string `json:"rootVolumeType,omitempty"`
// If volume type is io1, then we need to specify the number of Iops. Default: 100
// If volume type is io1, then we need to specify the number of Iops.
RootVolumeIops *int32 `json:"rootVolumeIops,omitempty"`
// RootVolumeOptimization enables EBS optimization for an instance
RootVolumeOptimization *bool `json:"rootVolumeOptimization,omitempty"`

View File

@ -68,7 +68,7 @@ type InstanceGroupSpec struct {
RootVolumeSize *int32 `json:"rootVolumeSize,omitempty"`
// RootVolumeType is the type of the EBS root volume to use (e.g. gp2)
RootVolumeType *string `json:"rootVolumeType,omitempty"`
// If volume type is io1, then we need to specify the number of Iops. Default: 100
// If volume type is io1, then we need to specify the number of Iops.
RootVolumeIops *int32 `json:"rootVolumeIops,omitempty"`
// RootVolumeOptimization enables EBS optimization for an instance
RootVolumeOptimization *bool `json:"rootVolumeOptimization,omitempty"`

View File

@ -64,8 +64,7 @@ func BlockDeviceMappingFromAutoscaling(i *autoscaling.BlockDeviceMapping) (strin
o.EbsVolumeSize = i.Ebs.VolumeSize
o.EbsVolumeType = i.Ebs.VolumeType
}
return aws.StringValue(i.DeviceName), o
return aws.StringValue(i.DeviceName), o
}
func (i *BlockDeviceMapping) ToAutoscaling(deviceName string) *autoscaling.BlockDeviceMapping {