</code></pre></div></div><h3id="-h--help">-h, -help</h3><p>Print usage and exit.</p><h3id="-version">-version</h3><p>Print version and exit.</p><h3id="-config">-config</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-config</code> flag specifies the path of the nfd-topology-updater configuration file to use.</p><p>Default: /etc/kubernetes/node-feature-discovery/nfd-topology-updater.conf</p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-config</span><spanclass="o">=</span>/opt/nfd/nfd-topology-updater.conf
</code></pre></div></div><h3id="-no-publish">-no-publish</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-no-publish</code> flag disables all communication with the nfd-master, making it a "dry-run" flag for nfd-topology-updater. NFD-Topology-Updater runs resource hardware topology detection normally, but no CR requests are sent to nfd-master.</p><p>Default: <em>false</em></p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-no-publish</span>
</code></pre></div></div><h3id="-oneshot">-oneshot</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-oneshot</code> flag causes nfd-topology-updater to exit after one pass of resource hardware topology detection.</p><p>Default: <em>false</em></p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-oneshot</span><spanclass="nt">-no-publish</span>
</code></pre></div></div><h3id="-metrics">-metrics</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-metrics</code> flag specifies the port on which to expose <ahref="https://prometheus.io/">Prometheus</a> metrics. Setting this to 0 disables the metrics server on nfd-topology-updater.</p><p>Default: 8081</p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-metrics</span><spanclass="o">=</span>12345
</code></pre></div></div><h3id="-sleep-interval">-sleep-interval</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-sleep-interval</code> specifies the interval between resource hardware topology re-examination (and CR updates). zero means no CR updates on interval basis.</p><p>Default: 60s</p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-sleep-interval</span><spanclass="o">=</span>1h
</code></pre></div></div><h3id="-watch-namespace">-watch-namespace</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-watch-namespace</code> specifies the namespace to ensure that resource hardware topology examination only happens for the pods running in the specified namespace. Pods that are not running in the specified namespace are not considered during resource accounting. This is particularly useful for testing/debugging purpose. A "*" value would mean that all the pods would be considered during the accounting process.</p><p>Default: "*"</p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-watch-namespace</span><spanclass="o">=</span>rte
</code></pre></div></div><h3id="-kubelet-config-uri">-kubelet-config-uri</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-kubelet-config-uri</code> specifies the path to the Kubelet's configuration. Note that the URi could either be a local host file or an HTTP endpoint.</p><p>Default: <codeclass="language-plaintext highlighter-rouge notranslate">https://${NODE_ADDRESS}:10250/configz</code></p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-kubelet-config-uri</span><spanclass="o">=</span>file:///var/lib/kubelet/config.yaml
</code></pre></div></div><h3id="-api-auth-token-file">-api-auth-token-file</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-api-auth-token-file</code> specifies the path to the api auth token file which is used to retrieve Kubelet's configuration from Kubelet secure port, only taking effect when <codeclass="language-plaintext highlighter-rouge notranslate">-kubelet-config-uri</code> is https. Note that this token file must bind to a role that has the <codeclass="language-plaintext highlighter-rouge notranslate">get</code> capability to <codeclass="language-plaintext highlighter-rouge notranslate">nodes/proxy</code> resources.</p><p>Default: <codeclass="language-plaintext highlighter-rouge notranslate">/var/run/secrets/kubernetes.io/serviceaccount/token</code></p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-token-file</span><spanclass="o">=</span>/var/run/secrets/kubernetes.io/serviceaccount/token
</code></pre></div></div><h3id="-podresources-socket">-podresources-socket</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-podresources-socket</code> specifies the path to the Unix socket where kubelet exports a gRPC service to enable discovery of in-use CPUs and devices, and to provide metadata for them.</p><p>Default: /host-var/lib/kubelet/pod-resources/kubelet.sock</p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-podresources-socket</span><spanclass="o">=</span>/var/lib/kubelet/pod-resources/kubelet.sock
</code></pre></div></div><h3id="-pods-fingerprint">-pods-fingerprint</h3><p>Enables compute and report the pod set fingerprint in the NRT. A pod fingerprint is a compact representation of the "node state" regarding resources.</p><p>Default: <codeclass="language-plaintext highlighter-rouge notranslate">false</code></p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-pods-fingerprint</span>
</code></pre></div></div><h3id="-kubelet-state-dir">-kubelet-state-dir</h3><p>The <codeclass="language-plaintext highlighter-rouge notranslate">-kubelet-state-dir</code> specifies the path to the Kubelet state directory, where state and checkpoint files are stored. The files are mount as read-only and cannot be change by the updater. Enabled by default. Passing an empty string will disable the watching.</p><p>Default: /host-var/lib/kubelet</p><p>Example:</p><divclass="language-bash highlighter-rouge notranslate"><divclass="highlight"><preclass="highlight"><code>nfd-topology-updater <spanclass="nt">-kubelet-state-dir</span><spanclass="o">=</span>/var/lib/kubelet