docs: 📝 update README.md
update README.md
This commit is contained in:
parent
e42800379a
commit
680a68204e
4
Makefile
4
Makefile
@ -12,6 +12,6 @@ LOCAL_REPOSITORY ?= localhost:5000
|
|||||||
go-build:
|
go-build:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -o bin/webdavplugin ./cmd/webdav
|
CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -o bin/webdavplugin ./cmd/webdav
|
||||||
|
|
||||||
.PHONY: build-local-image
|
.PHONY: docker-build
|
||||||
build-local-image:
|
docker-build: go-build
|
||||||
docker build --network host -t $(LOCAL_REPOSITORY)/webdavplugin:$(IMAGE_VERSION) .
|
docker build --network host -t $(LOCAL_REPOSITORY)/webdavplugin:$(IMAGE_VERSION) .
|
33
README.md
33
README.md
@ -3,3 +3,36 @@
|
|||||||
### Overview
|
### Overview
|
||||||
|
|
||||||
This is a repository for webdav csi driver, csi plugin name: `webdav.csi.io`. This driver supports dynamic provisioning of Persistent Volumes via Persistent Volume Claims by creating a new sub directory under webdav server.
|
This is a repository for webdav csi driver, csi plugin name: `webdav.csi.io`. This driver supports dynamic provisioning of Persistent Volumes via Persistent Volume Claims by creating a new sub directory under webdav server.
|
||||||
|
|
||||||
|
### Quick start with kind
|
||||||
|
|
||||||
|
#### Build plugin image
|
||||||
|
```bash
|
||||||
|
make docker-build
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Start kind cluster
|
||||||
|
```bash
|
||||||
|
kind create cluster --image kindest/node:v1.27.3
|
||||||
|
```
|
||||||
|
|
||||||
|
### Load plugin image to kind cluster
|
||||||
|
```bash
|
||||||
|
kind load docker-image registry.k8s.io/sig-storage/csi-provisioner:v3.6.2
|
||||||
|
kind load docker-image registry.k8s.io/sig-storage/livenessprobe:v2.11.0
|
||||||
|
kind load docker-image registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.9.1
|
||||||
|
kind load docker-image localhost:5000/webdavplugin:v0.0.1
|
||||||
|
```
|
||||||
|
|
||||||
|
### Deploy CSI
|
||||||
|
```bash
|
||||||
|
kubectl apply -f deploy/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tests
|
||||||
|
```bash
|
||||||
|
kubectl apply -f examples/csi-webdav-secret.yaml
|
||||||
|
kubectl apply -f examples/csi-webdav-storageclass.yaml
|
||||||
|
kubectl apply -f examples/csi-webdav-dynamic-pvc.yaml
|
||||||
|
kubectl apply -f examples/csi-webdav-pod.yaml
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user