Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.56 KB

ossm-config-control-plane-infrastructure-node-cli.adoc

File metadata and controls

42 lines (36 loc) · 1.56 KB

Configuring all control plane components to run on infrastructure nodes with the CLI

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.

Procedure
  1. Open the ServiceMeshControlPlane resource as a YAML file:

    $ oc -n istio-system edit smcp <name> (1)
    1. <name> represents the name of the ServiceMeshControlPlane resource.

  2. To run all of the {SMProductShortName} components deployed by the ServiceMeshControlPlane on infrastructure nodes, add the nodeSelector and tolerations fields to the spec.runtime.defaults.pod spec in the ServiceMeshControlPlane 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
    1. Ensures that the SMCP pods are only scheduled on an infrastructure node.

    2. Ensures that the pods are accepted by the infrastructure node.