1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +00:00

Merge pull request #1726 from marquiz/devel/helm-cmdline-args

deployment/helm: enable specifying additional cmdline args
This commit is contained in:
Kubernetes Prow Robot 2024-07-09 02:09:52 -07:00 committed by GitHub
commit d2456e181a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 20 additions and 0 deletions

View file

@ -115,6 +115,9 @@ spec:
- "-feature-gates={{ $key }}={{ $value }}" - "-feature-gates={{ $key }}={{ $value }}"
{{- end }} {{- end }}
- "-metrics={{ .Values.master.metricsPort | default "8081" }}" - "-metrics={{ .Values.master.metricsPort | default "8081" }}"
{{- with .Values.master.args }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts: volumeMounts:
{{- if .Values.tls.enable }} {{- if .Values.tls.enable }}
- name: nfd-master-cert - name: nfd-master-cert

View file

@ -53,6 +53,9 @@ spec:
{{- if .Values.gc.interval | empty | not }} {{- if .Values.gc.interval | empty | not }}
- "-gc-interval={{ .Values.gc.interval }}" - "-gc-interval={{ .Values.gc.interval }}"
{{- end }} {{- end }}
{{- with .Values.gc.args }}
{{- toYaml . | nindent 10 }}
{{- end }}
resources: resources:
{{- toYaml .Values.gc.resources | nindent 12 }} {{- toYaml .Values.gc.resources | nindent 12 }}
securityContext: securityContext:

View file

@ -91,6 +91,9 @@ spec:
- "-kubelet-state-dir=" - "-kubelet-state-dir="
{{- end }} {{- end }}
- -metrics={{ .Values.topologyUpdater.metricsPort | default "8081"}} - -metrics={{ .Values.topologyUpdater.metricsPort | default "8081"}}
{{- with .Values.topologyUpdater.args }}
{{- toYaml . | nindent 10 }}
{{- end }}
ports: ports:
- name: metrics - name: metrics
containerPort: {{ .Values.topologyUpdater.metricsPort | default "8081"}} containerPort: {{ .Values.topologyUpdater.metricsPort | default "8081"}}

View file

@ -85,6 +85,9 @@ spec:
- "-feature-gates={{ $key }}={{ $value }}" - "-feature-gates={{ $key }}={{ $value }}"
{{- end }} {{- end }}
- "-metrics={{ .Values.worker.metricsPort | default "8081"}}" - "-metrics={{ .Values.worker.metricsPort | default "8081"}}"
{{- with .Values.gc.args }}
{{- toYaml . | nindent 8 }}
{{- end }}
ports: ports:
- name: metrics - name: metrics
containerPort: {{ .Values.worker.metricsPort | default "8081"}} containerPort: {{ .Values.worker.metricsPort | default "8081"}}

View file

@ -20,6 +20,7 @@ priorityClassName: ""
master: master:
enable: true enable: true
args: []
config: ### <NFD-MASTER-CONF-START-DO-NOT-REMOVE> config: ### <NFD-MASTER-CONF-START-DO-NOT-REMOVE>
# noPublish: false # noPublish: false
# autoDefaultNs: true # autoDefaultNs: true
@ -141,6 +142,7 @@ master:
worker: worker:
enable: true enable: true
args: []
config: ### <NFD-WORKER-CONF-START-DO-NOT-REMOVE> config: ### <NFD-WORKER-CONF-START-DO-NOT-REMOVE>
#core: #core:
# labelWhiteList: # labelWhiteList:
@ -458,6 +460,7 @@ topologyUpdater:
### <NFD-TOPOLOGY-UPDATER-CONF-END-DO-NOT-REMOVE> ### <NFD-TOPOLOGY-UPDATER-CONF-END-DO-NOT-REMOVE>
enable: false enable: false
args: []
createCRDs: false createCRDs: false
serviceAccount: serviceAccount:
@ -512,6 +515,7 @@ topologyUpdater:
gc: gc:
enable: true enable: true
args: []
replicaCount: 1 replicaCount: 1
serviceAccount: serviceAccount:

View file

@ -143,6 +143,7 @@ API's you need to install the prometheus operator in your cluster.
| `master.deploymentAnnotations` | dict | {} | NFD master deployment [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) | | `master.deploymentAnnotations` | dict | {} | NFD master deployment [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| `master.nfdApiParallelism` | integer | 10 | Specifies the maximum number of concurrent node updates. | | `master.nfdApiParallelism` | integer | 10 | Specifies the maximum number of concurrent node updates. |
| `master.config` | dict | | NFD master [configuration](../reference/master-configuration-reference) | | `master.config` | dict | | NFD master [configuration](../reference/master-configuration-reference) |
| `master.args` | array | [] | Additional [command line arguments](../reference/master-commandline-reference.md) to pass to nfd-master |
### Worker pod parameters ### Worker pod parameters
@ -166,6 +167,7 @@ API's you need to install the prometheus operator in your cluster.
| `worker.priorityClassName` | string | | NFD worker pod [priority class](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/) | | `worker.priorityClassName` | string | | NFD worker pod [priority class](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/) |
| `worker.annotations` | dict | {} | NFD worker pod [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) | | `worker.annotations` | dict | {} | NFD worker pod [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| `worker.daemonsetAnnotations` | dict | {} | NFD worker daemonset [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) | | `worker.daemonsetAnnotations` | dict | {} | NFD worker daemonset [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| `worker.args` | array | [] | Additional [command line arguments](../reference/worker-commandline-reference.md) to pass to nfd-worker |
### Topology updater parameters ### Topology updater parameters
@ -195,6 +197,7 @@ API's you need to install the prometheus operator in your cluster.
| `topologyUpdater.config` | dict | | [configuration](../reference/topology-updater-configuration-reference) | | `topologyUpdater.config` | dict | | [configuration](../reference/topology-updater-configuration-reference) |
| `topologyUpdater.podSetFingerprint` | bool | true | 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. |
| `topologyUpdater.args` | array | [] | Additional [command line arguments](../reference/topology-updater-commandline-reference.md) to pass to nfd-topology-updater |
### Garbage collector parameters ### Garbage collector parameters
@ -216,6 +219,7 @@ API's you need to install the prometheus operator in your cluster.
| `gc.annotations` | dict | {} | Garbage collector pod [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) | | `gc.annotations` | dict | {} | Garbage collector pod [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| `gc.deploymentAnnotations` | dict | {} | Garbage collector deployment [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) | | `gc.deploymentAnnotations` | dict | {} | Garbage collector deployment [annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| `gc.affinity` | dict | {} | Garbage collector pod [affinity](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/) | | `gc.affinity` | dict | {} | Garbage collector pod [affinity](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/) |
| `gc.args` | array | [] | Additional [command line arguments](../reference/gc-commandline-reference.md) to pass to nfd-gc |
<!-- Links --> <!-- Links -->
[rbac]: https://kubernetes.io/docs/reference/access-authn-authz/rbac/ [rbac]: https://kubernetes.io/docs/reference/access-authn-authz/rbac/