Skip to content

Commit

Permalink
Document host* and shareProcessNamespace flags
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Sep 17, 2024
1 parent 802d268 commit 4065af7
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions docs/serving/configuration/feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
...
```

0 comments on commit 4065af7

Please sign in to comment.