Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

feat: add knative serving and functions #14

Merged
merged 14 commits into from
Dec 20, 2023
Prev Previous commit
Next Next commit
docs: enable pvc usage section
Signed-off-by: Zuhair AlSader <zuhair@koor.tech>
  • Loading branch information
zalsader committed Dec 19, 2023
commit 878935b46e5176f8e1c71d8b13ee415f303f8dc5
20 changes: 20 additions & 0 deletions knative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,27 @@ kn func create -l go consumer
...

## Enable PVC usage and configure the functions to use the pvc
https://knative.dev/docs/serving/configuration/feature-flags/#kubernetes-persistentvolumeclaim-pvc

```yaml
features:
kubernetes.podspec-persistent-volume-claim: "enabled"
kubernetes.podspec-persistent-volume-write: "enabled"
```

## Add pvc to funcs
```bash
kn func config volumes add
```

or add this to `func.yaml`
```bash
run:
volumes:
- presistentVolumeClaim:
claimName: knative-pc-cephfs
path: /files
```

## Build and push kantive function
```bash
Expand Down