You want to use storage with your container, in this guide we will show you how you can mount and use a volume for your container.
Prerequisites:
- Namespace
Persistent storage steps guide:
- Open your namespace
- Open the tab Volumes
- Click “Add Volume”
- Specify the name of the volume
- Specify the amount of storage you need
- Click “Add Volume”
You now have a volume that you can mount to your container - Open the tab Containers
- Click “Add Container”
- Specify the fields for your container.
For testing you can use the following configuration
1. Image: erwinmaastilaa/fileexplorer:v0.1
2. Credentials: public
3. Container name: volume-test
4. Resources: 0.25CPU – 0.5GB RAM
5. Environment Variables: none
6. Expose port: 5000
7. Make available: Yes
Ingress with HTTP port 5000 - At step 8 enable persistent storage
- Select Mount Existing volume
- Select the volume created at step 6
- Specify the mount path
e.g.: /my/volume/path - Click “Mount”
- Click “Add Container”
- Wait until the container is running and available.
You have created a container with a volume mounted to your container. All data stored on the mount path will be stored on the volume and will stay there until deleted or the volume will be deleted.
Comments
Please sign in to leave a comment.