Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 996 Bytes

File metadata and controls

44 lines (29 loc) · 996 Bytes

Dynamic Provisioning

This example shows how to make a dynamic provisioned JuiceFS persistence volume (PV) mounted inside container.

Provide secret information

In order to build the example, you need to provide a secret file Secret-juicefs.env containing the required credentials

name=<juicefs-name>
token=<juicefs-token>
accesskey=<juicefs-accesskey>
secretkey=<juicefs-secretkey>

Apply the configurations

Build the example with kustomize and apply with kubectl

kustomize build | kubectl apply -f -

or apply with kubectl >= 1.14

kubectl apply -k .

Check JuiceFS filesystem is used

After the objects are created, verify that pod is running:

>> kubectl get pods

Also you can verify that data is written onto JuiceFS filesystem:

>> kubectl exec -ti juicefs-app -- tail -f /data/out.txt

Check for the directory created as PV https://juicefs.com/console/vol//