init containers (#4335)

This commit is contained in:
Stavros Kontopoulos 2021-10-07 18:28:29 +03:00 committed by GitHub
parent 51dfe912cc
commit 427f50f26e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -365,3 +365,25 @@ spec:
* **ConfigMap key:** `tag-header-based-routing` * **ConfigMap key:** `tag-header-based-routing`
This flags controls whether [tag header based routing](../../serving/samples/tag-header-based-routing/README.md) is enabled. This flags controls whether [tag header based routing](../../serving/samples/tag-header-based-routing/README.md) is enabled.
## Kubernetes init containers
* **Type**: Extension
* **ConfigMap key:** `kubernetes.podspec-init-containers`
This flag controls whether [init containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) can be used.
```yaml
apiVersion: serving.knative.dev/v1
kind: Service
...
spec:
template:
spec:
...
initContainers:
- name: init-myservice
image: busybox
command: ['sh', '-c', "service_setup.sh"]
...
```