This repository has been archived on 2024-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
onechart/website/docs/examples/volumes.md
T
2020-10-09 14:26:52 +02:00

906 B

OneChart settings for setting environment variables:

image:
  repository: nginx
  tag: 1.19.3

volumes:
  - name: data
    path: /var/lib/1clickinfra/data
    size: 10Gi
    storageClass: default

Check the Kubernetes manifest:

cat << EOF > values.yaml
image:
  repository: nginx
  tag: 1.19.3

volumes:
  - name: data
    path: /var/lib/1clickinfra/data
    size: 10Gi
    storageClass: default
EOF

helm template my-release onechart/onechart -f values.yaml

!!! warning

OneChart generates a `PeristentVolumeClaim` with this configuration and mounts it to the given path.

You have to know what `storageClass` is supported in your cluster.

- On Google Cloud, `standard` gets you disk
- On Azure, `default` gets you a normal block storage
- Amazon EKS, `TODO`
- Use `do-block-storage` for Digital Ocean

Mount an Azure file storage

TODO