Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document host* and shareProcessNamespace flags #6123

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Copy link
Contributor Author

@skonto skonto Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check https://github.com/kubernetes-client/go/blob/master/kubernetes/docs/V1PodSpec.md for this, probably we should catch this a bit earlier at the Serving side, before any resources are created.


### 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
...
```
Loading