diff --git a/docs/serving/configuration/feature-flags.md b/docs/serving/configuration/feature-flags.md index d947e8177e..39652a4a87 100644 --- a/docs/serving/configuration/feature-flags.md +++ b/docs/serving/configuration/feature-flags.md @@ -516,6 +516,7 @@ spec: * **ConfigMap key:** `kubernetes.podspec-schedulername` This flag controls whether a [`scheduler name`](https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/) can be specified. + ```yaml apiVersion: serving.knative.dev/v1 kind: Service @@ -527,3 +528,83 @@ spec: schedulerName: custom-scheduler-example ... ``` + +### Kubernetes Share Process Namespace + +* **Type**: Extension +* **ConfigMap key:** `kubernetes.podspec-shareprocessnamespace` + +This flag controls whether the [share process namespace](https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/) can be used. + +```yaml +apiVersion: serving.knative.dev/v1 +kind: Service +... +spec: + template: + spec: + ... + shareProcessNamespace: true +... +``` + +!!! warning + + `shareProcessNamespace` and `hostPID` cannot both be set. + +### Kubernetes Host IPC + +* **Type**: Extension +* **ConfigMap key:** `kubernetes.podspec-hostipc` + +This flag controls whether the host's ipc namespace can be used. + +```yaml +apiVersion: serving.knative.dev/v1 +kind: Service +... +spec: + template: + spec: + ... + hostIPC: true +... +``` + +### Kubernetes Host PID + +* **Type**: Extension +* **ConfigMap key:** `kubernetes.podspec-hostpid` + +This flag controls whether the host's pid can be used. + +```yaml +apiVersion: serving.knative.dev/v1 +kind: Service +... +spec: + template: + spec: + ... + hostPID: true +... +``` + +### Kubernetes Host Network + +* **Type**: Extension +* **ConfigMap key:** `kubernetes.podspec-hostnetwork` + +This flag controls whether the host's network namespace can be used. + +```yaml +apiVersion: serving.knative.dev/v1 +kind: Service +... +spec: + template: + spec: + ... + hostNetwork: true +... +```