Perform this task if all of the components deployed by the {SMProductShortName} control plane, including Istiod, Ingress Gateway, and Egress Gateway, along with optional elements, such as Prometheus, Grafana, and Distributed Tracing, will run on infrastructure nodes.
If the control plane will run on a worker node, skip this task.
-
Open the
ServiceMeshControlPlane
resource as a YAML file:$ oc -n istio-system edit smcp <name> (1)
-
<name>
represents the name of theServiceMeshControlPlane
resource.
-
-
To run all of the {SMProductShortName} components deployed by the
ServiceMeshControlPlane
on infrastructure nodes, add thenodeSelector
andtolerations
fields to thespec.runtime.defaults.pod
spec in theServiceMeshControlPlane
resource:spec: runtime: defaults: pod: nodeSelector: (1) node-role.kubernetes.io/infra: "" tolerations: (2) - effect: NoSchedule key: node-role.kubernetes.io/infra value: reserved - effect: NoExecute key: node-role.kubernetes.io/infra value: reserved
-
Ensures that the SMCP pods are only scheduled on an infrastructure node.
-
Ensures that the pods are accepted by the infrastructure node.
-