Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 900 Bytes

File metadata and controls

42 lines (28 loc) · 900 Bytes

Static Provisioning

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

Provide secret information

In order to build the example, you need to provide a secret file secrets.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