Skip to content

Instantly share code, notes, and snippets.

@ajohnstone
Last active May 5, 2016 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajohnstone/232ed3d51a69128e79c295e96ee71042 to your computer and use it in GitHub Desktop.
Save ajohnstone/232ed3d51a69128e79c295e96ee71042 to your computer and use it in GitHub Desktop.

The kubernetes cluster has nodes of m3.medium and only have a emphemeral storage capacity of 4gb.

This is easily utilized, and therefore need to increase the total size.

I've allocated the following so technically the LVM group could utilise the following. However its unclear how to automatically get it to expand the volume.

export MASTER_DISK_TYPE='gp2';
export MASTER_DISK_SIZE=250
export MASTER_ROOT_DISK_TYPE='gp2'
export MASTER_ROOT_DISK_SIZE=250
export NODE_ROOT_DISK_TYPE='gp2'
export NODE_ROOT_DISK_SIZE=250

For further information see ./cluster/aws/templates/format-disks.sh kubernetes will only consider emphemeral disks.

It will utilise all emphemeral disks within the aws node.

    for block_device in ${block_devices}; do
      pvcreate ${block_device}
    done
    vgcreate vg-ephemeral ${block_devices[@]}

which will mount to /mnt/ephemeral

The LVM group will allocate 80% of the disk. Additionally the following will be around 74GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment