mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
nfd-topology-updater add pods fingerprint by default
This commit is contained in:
parent
ea4504a916
commit
b6d8ce7a5a
4 changed files with 30 additions and 30 deletions
|
@ -119,7 +119,7 @@ func initFlags(flagset *flag.FlagSet) (*topology.Args, *resourcemonitor.Args) {
|
||||||
"Pod Resource Socket path to use.")
|
"Pod Resource Socket path to use.")
|
||||||
flagset.StringVar(&args.ConfigFile, "config", "/etc/kubernetes/node-feature-discovery/nfd-topology-updater.conf",
|
flagset.StringVar(&args.ConfigFile, "config", "/etc/kubernetes/node-feature-discovery/nfd-topology-updater.conf",
|
||||||
"Config file to use.")
|
"Config file to use.")
|
||||||
flagset.BoolVar(&resourcemonitorArgs.PodSetFingerprint, "pods-fingerprint", false, "Compute and report the pod set fingerprint")
|
flagset.BoolVar(&resourcemonitorArgs.PodSetFingerprint, "pods-fingerprint", true, "Compute and report the pod set fingerprint")
|
||||||
flagset.StringVar(&args.KubeletStateDir, "kubelet-state-dir", DefaultKubeletStateDir, "Kubelet state directory path for watching state and checkpoint files")
|
flagset.StringVar(&args.KubeletStateDir, "kubelet-state-dir", DefaultKubeletStateDir, "Kubelet state directory path for watching state and checkpoint files")
|
||||||
|
|
||||||
klog.InitFlags(flagset)
|
klog.InitFlags(flagset)
|
||||||
|
|
|
@ -66,8 +66,8 @@ spec:
|
||||||
- "-key-file=/etc/kubernetes/node-feature-discovery/certs/tls.key"
|
- "-key-file=/etc/kubernetes/node-feature-discovery/certs/tls.key"
|
||||||
- "-cert-file=/etc/kubernetes/node-feature-discovery/certs/tls.crt"
|
- "-cert-file=/etc/kubernetes/node-feature-discovery/certs/tls.crt"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.topologyUpdater.podSetFingerprint }}
|
{{- if not .Values.topologyUpdater.podSetFingerprint }}
|
||||||
- "-pods-fingerprint"
|
- "-pods-fingerprint=false"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.topologyUpdater.kubeletConfigPath | empty | not }}
|
{{- if .Values.topologyUpdater.kubeletConfigPath | empty | not }}
|
||||||
- "-kubelet-config-uri=file:///host-var/kubelet-config"
|
- "-kubelet-config-uri=file:///host-var/kubelet-config"
|
||||||
|
|
|
@ -162,7 +162,7 @@ API's you need to install the prometheus operator in your cluster.
|
||||||
### Topology updater parameters
|
### Topology updater parameters
|
||||||
|
|
||||||
| Name | Type | Default | description |
|
| Name | Type | Default | description |
|
||||||
|-----------------------------------------------|--------|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|-----------------------------------------------|--------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `topologyUpdater.*` | dict | | NFD Topology Updater configuration |
|
| `topologyUpdater.*` | dict | | NFD Topology Updater configuration |
|
||||||
| `topologyUpdater.enable` | bool | false | Specifies whether the NFD Topology Updater should be created |
|
| `topologyUpdater.enable` | bool | false | Specifies whether the NFD Topology Updater should be created |
|
||||||
| `topologyUpdater.createCRDs` | bool | false | Specifies whether the NFD Topology Updater CRDs should be created |
|
| `topologyUpdater.createCRDs` | bool | false | Specifies whether the NFD Topology Updater CRDs should be created |
|
||||||
|
@ -184,7 +184,7 @@ API's you need to install the prometheus operator in your cluster.
|
||||||
| `topologyUpdater.daemonsetAnnotations` | dict | {} | Topology updater daemonset [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
|
| `topologyUpdater.daemonsetAnnotations` | dict | {} | Topology updater daemonset [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
|
||||||
| `topologyUpdater.affinity` | dict | {} | Topology updater pod [affinity](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/) |
|
| `topologyUpdater.affinity` | dict | {} | Topology updater pod [affinity](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/) |
|
||||||
| `topologyUpdater.config` | dict | | [configuration](../reference/topology-updater-configuration-reference) |
|
| `topologyUpdater.config` | dict | | [configuration](../reference/topology-updater-configuration-reference) |
|
||||||
| `topologyUpdater.podSetFingerprint` | bool | false | Enables compute and report of pod fingerprint in NRT objects. |
|
| `topologyUpdater.podSetFingerprint` | bool | true | Enables compute and report of pod fingerprint in NRT objects. |
|
||||||
| `topologyUpdater.kubeletStateDir` | string | /var/lib/kubelet | Specifies kubelet state directory path for watching state and checkpoint files. Empty value disables kubelet state tracking. |
|
| `topologyUpdater.kubeletStateDir` | string | /var/lib/kubelet | Specifies kubelet state directory path for watching state and checkpoint files. Empty value disables kubelet state tracking. |
|
||||||
|
|
||||||
### Garbage collector parameters
|
### Garbage collector parameters
|
||||||
|
|
|
@ -164,12 +164,12 @@ nfd-topology-updater -podresources-socket=/var/lib/kubelet/pod-resources/kubelet
|
||||||
Enables compute and report the pod set fingerprint in the NRT.
|
Enables compute and report the pod set fingerprint in the NRT.
|
||||||
A pod fingerprint is a compact representation of the "node state" regarding resources.
|
A pod fingerprint is a compact representation of the "node state" regarding resources.
|
||||||
|
|
||||||
Default: `false`
|
Default: `true`
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nfd-topology-updater -pods-fingerprint
|
nfd-topology-updater -pods-fingerprint=false
|
||||||
```
|
```
|
||||||
|
|
||||||
### -kubelet-state-dir
|
### -kubelet-state-dir
|
||||||
|
|
Loading…
Reference in a new issue