Add emptydir extension (#4064)

* emptydir

* fix
This commit is contained in:
Stavros Kontopoulos 2021-07-28 18:22:16 +03:00 committed by GitHub
parent c7d5e9f656
commit 880e33b087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -106,6 +106,29 @@ spec:
image: gcr.io/knative-samples/helloworld-java
```
## EmptyDir
* **Type**: extension
* **ConfigMap key:** `kubernetes.podspec-volumes-emptydir`
This extension controls whether [emptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) volumes can be specified.
```yaml
apiVersion: serving.knative.dev/v1
kind: Service
...
spec:
template:
spec:
containers:
...
volumeMounts:
- name: cache
mountPath: /cache
volumes:
- name: cache
emptyDir: {}
```
## Kubernetes Node Affinity
* **Type**: extension