awsElasticBlockStore

awsElasticBlockStore volume mounts an Amazon Web Service Elastic Block Store (AWS EBS) volume. It's a service that provides persistent block storage for Amazon EC2. Just like the GCE persistent disk, we can provision it statically or dynamically.

To provision it statically, administrators have to create an EBS volume by the AWS console or AWS CLI beforehand. The following is an example of how to mount an existing EBS volume to the containers in a Deployment:

// example of how we used pre-created EBS volume.# cat 2-6-8_aws/static_mount.yamlkind: DeploymentapiVersion: apps/v1metadata:  name: aws-ebs-deploymentspec:  replicas: 2  selector:    matchLabels:      run: nginx  template:    metadata:      labels:        run: nginx    spec:      volumes: - name: ...

Get Getting Started with Containerization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.