Questo contenuto non è disponibile nella lingua selezionata.

Chapter 10. Configuring node agent load affinity


You can schedule the node agent pods on specific nodes by using the spec.podConfig.nodeSelector object of the DataProtectionApplication (DPA) custom resource (CR).

See the following example in which you can schedule the node agent pods on nodes with the label label.io/role: cpu-1 and other-label.io/other-role: cpu-2.

...
spec:
  configuration:
    nodeAgent:
      enable: true
      uploaderType: kopia
      podConfig:
        nodeSelector:
          label.io/role: cpu-1
          other-label.io/other-role: cpu-2
        ...
Copy to Clipboard Toggle word wrap

You can add more restrictions on the node agent pods scheduling by using the nodeagent.loadAffinity object in the DPA spec.

Prerequisites

  • You must be logged in as a user with cluster-admin privileges.
  • You have installed the OADP Operator.
  • You have configured the DPA CR.

Procedure

  • Configure the DPA spec nodegent.loadAffinity object as shown in the following example.

    In the example, you ensure that the node agent pods are scheduled only on nodes with the label label.io/role: cpu-1 and the label label.io/hostname matching with either node1 or node2.

    ...
    spec:
      configuration:
        nodeAgent:
          enable: true
          loadAffinity:
            - nodeSelector:
                matchLabels:
                  label.io/role: cpu-1
                matchExpressions:
                  - key: label.io/hostname
                    operator: In
                    values:
                      - node1
                      - node2
                      ...
    Copy to Clipboard Toggle word wrap

    where:

    loadAffinity
    Specifies the loadAffinity object by adding the matchLabels and matchExpressions objects.
    matchExpressions
    Specifies the matchExpressions object to add restrictions on the node agent pods scheduling.
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2026 Red Hat
Torna in cima