From f545f21a0e0de35d2df14565da89c4eb99469319 Mon Sep 17 00:00:00 2001 From: Paul Schweigert Date: Tue, 4 Oct 2022 13:57:28 -0400 Subject: [PATCH] add missing serving feature flags to site (#5250) Signed-off-by: Paul S. Schweigert Signed-off-by: Paul S. Schweigert --- docs/serving/configuration/feature-flags.md | 61 +++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/docs/serving/configuration/feature-flags.md b/docs/serving/configuration/feature-flags.md index ab26f3860..b718c5a15 100644 --- a/docs/serving/configuration/feature-flags.md +++ b/docs/serving/configuration/feature-flags.md @@ -436,3 +436,64 @@ metadata: annotations: features.knative.dev/queueproxy-podinfo: enabled ... ``` + +### Kubernetes Topology Spread Constraints + +* **Type**: Extension +* **ConfigMap key:** `kubernetes.podspec-topologyspreadconstraints` + +This flag controls whether [`topology spread constraints`](https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/) can be specified. + +```yaml +apiVersion: serving.knative.dev/v1 +kind: Service +... +spec: + template: + spec: + ... + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: node + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + foo: bar +... +``` + +### Kubernetes DNS Policy + +* **Type**: Extension +* **ConfigMap key:** `kubernetes.podspec-dnspolicy` + +This flag controls whether a [`DNS policy`](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/) can be specified. + +```yaml +apiVersion: serving.knative.dev/v1 +kind: Service +... +spec: + template: + spec: + dnsPolicy: ClusterFirstWithHostNet +... +``` + +### Kubernetes Scheduler Name + +* **Type**: Extension +* **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 +... +spec: + template: + spec: + ... + schedulerName: custom-scheduler-example +... +```