Skip to content

Commit b8c9024

Browse files
authored
Merge pull request #81450 from lahinson/osdocs-11701-hcp-virt-tolerations
[OSDOCS-11701]: Adding custom taints and tolerations docs to HCP
2 parents 3b35b1f + 344f34e commit b8c9024

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

hosted_control_planes/hcp-prepare/hcp-distribute-workloads.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ Do not use the management cluster for your workload. Workloads must not run on n
2222
====
2323

2424
include::modules/hcp-labels-taints.adoc[leveloffset=+1]
25-
include::modules/hcp-priority-classes.adoc[leveloffset=+1]
25+
include::modules/hcp-priority-classes.adoc[leveloffset=+1]
26+
include::modules/hcp-virt-taints-tolerations.adoc[leveloffset=+1]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * hosted_control_planes/hcp-prepare/hcp-distribute-workloads.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="hcp-virt-taints-tolerations_{context}"]
7+
= Custom taints and tolerations
8+
9+
For {hcp} on {VirtProductName}, by default, pods for a hosted cluster tolerate the `control-plane` and `cluster` taints. However, you can also use custom taints on nodes so that hosted clusters can tolerate those taints on a per-hosted-cluster basis by setting `HostedCluster.spec.tolerations`.
10+
11+
:FeatureName: Passing tolerations for a hosted cluster
12+
include::snippets/technology-preview.adoc[]
13+
14+
.Example configuration
15+
[source,yaml]
16+
----
17+
spec:
18+
tolerations:
19+
- effect: NoSchedule
20+
key: kubernetes.io/custom
21+
operator: Exists
22+
----
23+
24+
You can also set tolerations on the hosted cluster while you create a cluster by using the `--tolerations` hcp CLI argument.
25+
26+
.Example CLI argument
27+
[source,terminal]
28+
----
29+
--toleration="key=kubernetes.io/custom,operator=Exists,effect=NoSchedule"
30+
----
31+
32+
For fine granular control of hosted cluster pod placement on a per-hosted-cluster basis, use custom tolerations with `nodeSelectors`. You can co-locate groups of hosted clusters and isolate them from other hosted clusters. You can also place hosted clusters in infra and control plane nodes.
33+
34+
Tolerations on the hosted cluster spread only to the pods of the control plane. To configure other pods that run on the management cluster and infrastructure-related pods, such as the pods to run virtual machines, you need to use a different process.

0 commit comments

Comments
 (0)