Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mingfang/flexvolume-ebs
Kubernetes FlexVolume Plugin For AWS EBS
https://github.com/mingfang/flexvolume-ebs
Last synced: about 5 hours ago
JSON representation
Kubernetes FlexVolume Plugin For AWS EBS
- Host: GitHub
- URL: https://github.com/mingfang/flexvolume-ebs
- Owner: mingfang
- Created: 2017-11-15T04:05:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-21T11:59:11.000Z (over 6 years ago)
- Last Synced: 2024-11-06T15:18:27.440Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flexvolume-ebs
[FlexVolume](https://github.com/kubernetes/community/blob/master/contributors/devel/flexvolume.md) Plugin For AWS EBS# Features
- Target EBS volumes to be mounted on a specified AZ
- Auto detect attachment and mount devices
- Works with new NVME EC2 instance types(C5, M5, T3, etc)
- Supports XFS filesystem
- Auto resize at mount time using xfs_grow# Requirements
## Kubernetes Master
- kube-controller-manager --flex-volume-plugin-dir=/var/lib/kubelet/volumeplugins
- [IAM Role](example/iam_role.json) and [IAM Role Policy](example/iam_role_policy.json)
- Set REGION env variable, e.g. ```export REGION=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -c -r .region)```## Kubernetes Nodes
- kubelet --volume-plugin-dir=/var/lib/kubelet/volumeplugins
- kubelet --node-labels=failure-domain.beta.kubernetes.io/zone=$AZ## EBS Volumes
- Must have Name tag, e.g. ```Name="volume1"```## Persistent Volumes
- Name PV to be the same as the EBS name tag, e.g. ```name: volume1```
- Label the target AZ, e.g. ```failure-domain.beta.kubernetes.io/zone: us-west-2a```
- Add flexvolume configuration
- Note the storage capacity value is needed for validation but is not used at runtime
- [Sample PV](example/persistent-volume.yml)## Persistent Volume Claim
- Set volume name to be same as the PV name
- Note the storage capacity value is needed for validation but is not used at runtime
- [Sample PVC](example/persistent-volume-claim.yml)# Installation
[Deployment using DaemonSet](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/flexvolume-deployment.md#recommended-driver-deployment-method)
[flexvolume-es-daemonset.yml](example/flexvolume-es-daemonset.yml)