Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Jun 28, 2023
1 parent e10d281 commit abfeed1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ nav:
# TODO: Add security section to docs?
- Configure resource requests and limits: serving/services/configure-requests-limits-services.md
- HTTPS redirection: serving/services/http-protocol.md
- Configuring storage: serving/services/storage.md
- Volume Support: serving/services/storage.md
- Traffic management: serving/traffic-management.md
- Configuring gradual rollout of traffic to Revisions: serving/rolling-out-latest-revision.md
- Tag resolution: serving/tag-resolution.md
Expand Down
17 changes: 7 additions & 10 deletions docs/serving/services/storage.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Configuring storage for Knative services
# Volume Support for Knative services

Knative Serving integrates with K8s storage capabilities via supporting a subset of ephemeral storage volumes and via PersistentVolumeClaims(PVCs) volume types.
In detail Knative Serving supports emptyDir by default, secret, configmap, projection and PVCs volume types.
For more details on volume configuration check the related [feature flags](../configuration/feature-flags.md) when applicable.
By default Serving supports the mounting the [volume types](https://kubernetes.io/docs/concepts/storage/volumes):`emptyDir`, `secret`, `configMap` and `projected`. [PersistentVolumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) are supported but require a [feature flag](../configuration/feature-flags.md) to be enabled.

Here is an example of using PVCs:
!!! warning
Mounting large volumes may add considerable overhead to the application's start up time.


Here is an example of using a persistent volume claim with a Knative Service:

```yaml
apiVersion: serving.knative.dev/v1
Expand Down Expand Up @@ -36,8 +38,3 @@ spec:
requests:
storage: 1Gi
```
The example assumes that the user has enabled PVC support via the corresponding feature flag.
!!! warning
Mounting large volumes may add considerable overhead to the application's start up time.

0 comments on commit abfeed1

Please sign in to comment.