mirror of https://github.com/kubernetes/kops.git
small docs fixes
This commit is contained in:
parent
847bf0c2e1
commit
4d27d5d93c
|
@ -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
|
||||
|
|
|
@ -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"`
|
||||
|
|
|
@ -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"`
|
||||
|
|
|
@ -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"`
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue