Skip to content

Commit

Permalink
docs: simply nfs storage
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Aug 11, 2024
1 parent 3d722ed commit 0118f06
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 66 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ build-jz
./dist/jz-flow daemon --mongo-url mongodb://<ip>:27017
```



### 3. Run a Example Flow

```
Expand Down
54 changes: 51 additions & 3 deletions script/storageclass/rbac.yaml → script/nfs-storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,54 @@ roleRef:
kind: Role
name: leader-locking-jz-flow-fs-provisioner
apiGroup: rbac.authorization.k8s.io



---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jz-flow-fs-provisioner
labels:
app: jz-flow-fs-provisioner
# replace with namespace where provisioner is deployed
namespace: default
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: jz-flow-fs-provisioner
template:
metadata:
labels:
app: jz-flow-fs-provisioner
spec:
serviceAccountName: jz-flow-fs-provisioner
containers:
- name: jz-flow-fs-provisioner
image: eipwork/nfs-subdir-external-provisioner:v4.0.2
volumeMounts:
- name: jz-flow-fs-root
mountPath: /persistentvolumes
env:
- name: PROVISIONER_NAME
value: jzaction/nfs-provisioner
- name: NFS_SERVER
value: 192.168.3.163
- name: NFS_PATH
value: /hdd1/testdir
volumes:
- name: jz-flow-fs-root
nfs:
server: 192.168.3.163
path: /hdd1/testdir
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: jz-flow-fs
provisioner: jzaction/nfs-provisioner # or choose another name, must match deployment's env PROVISIONER_NAME'
parameters:
archiveOnDelete: "false"
mountOptions:
- lock
- nfsvers=3
10 changes: 0 additions & 10 deletions script/storageclass/nfs-storageclasses.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions script/storageclass/provisioner.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions script/storageclass/test-claim.yaml

This file was deleted.

0 comments on commit 0118f06

Please sign in to comment.