mirror of https://github.com/knative/docs.git
init containers (#4335)
This commit is contained in:
parent
51dfe912cc
commit
427f50f26e
|
|
@ -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"]
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue