Skip to content

Commit

Permalink
feat: add docs for runtime-class-name feature (#6022)
Browse files Browse the repository at this point in the history
adds docs for configuring runtime-class-name
  • Loading branch information
BobyMCbobs authored Jun 27, 2024
1 parent 1ec7a2b commit f146f87
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docs/serving/configuration/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,47 @@ data:
# List of repositories for which tag to digest resolving should be skipped
registries-skipping-tag-resolving: registry.example.com
```

## Configuring selectable RuntimeClassName

You can configure Knative Serving to configure deployments with a specified RuntimeClassName (`Pod.Spec.RuntimeClassName`) by modifying the `runtime-class-name` setting.

The setting works with Service labels and will configure either a default or one where the most labels match.

**Example:**

=== "Global (ConfigMap)"
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: config-deployment
namespace: knative-serving
data:
runtime-class-name: |
kata: {}
gvisor:
selector:
my-label: selector
```

=== "Operator"
```yaml
apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
name: knative-serving
namespace: knative-serving
spec:
config:
deployment:
runtime-class-name: |
kata: {}
gvisor:
selector:
my-label: selector
```

See [Kubernetes RuntimeClass](https://kubernetes.io/docs/concepts/containers/runtime-class/) docs for more information.

Separately, there is a feature flag to allow [manual configuration of RuntimeClassName](/docs/serving/configuration/feature-flags/#kubernetes-runtime-class).

0 comments on commit f146f87

Please sign in to comment.