mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-13 20:30:03 +00:00
deployment/helm: disable nfr controller for parallel instances
Change the helm chart so that the NodeFeatureRule controller will be disabled for other than the default deployment (i.e. all deployments where master.instance is non-empty), unless explicitly set to true. With this we try to ensure that there is only on controller instance for the CR, avoiding contention and conflicts.
This commit is contained in:
parent
ec15f4f24c
commit
edb3e6824c
3 changed files with 7 additions and 2 deletions
|
@ -78,7 +78,12 @@ spec:
|
|||
{{- if .Values.master.extraLabelNs | empty | not }}
|
||||
- "--extra-label-ns={{- join "," .Values.master.extraLabelNs }}"
|
||||
{{- end }}
|
||||
{{- if .Values.master.featureRulesController | kindIs "invalid" | not }}
|
||||
- "-featurerules-controller={{ .Values.master.featureRulesController }}"
|
||||
{{- else }}
|
||||
## By default, disable NodeFeatureRules controller for other than the default instances
|
||||
- "-featurerules-controller={{ .Values.master.instance | empty }}"
|
||||
{{- end }}
|
||||
{{- if .Values.tls.enable }}
|
||||
- "--ca-file=/etc/kubernetes/node-feature-discovery/certs/ca.crt"
|
||||
- "--key-file=/etc/kubernetes/node-feature-discovery/certs/tls.key"
|
||||
|
|
|
@ -24,7 +24,7 @@ nodeFeatureRule:
|
|||
master:
|
||||
instance:
|
||||
extraLabelNs: []
|
||||
featureRulesController: true
|
||||
featureRulesController: null
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
|
|
|
@ -301,7 +301,7 @@ We have introduced the following Chart parameters.
|
|||
| `master.*` | dict | | NFD master deployment configuration |
|
||||
| `master.instance` | string | | Instance name. Used to separate annotation namespaces for multiple parallel deployments |
|
||||
| `master.extraLabelNs` | array | [] | List of allowed extra label namespaces |
|
||||
| `master.featureRulesController` | bool | True | Specifies whether the controller for processing of NodeFeatureRule objects is enable. |
|
||||
| `master.featureRulesController` | bool | null | Specifies whether the controller for processing of NodeFeatureRule objects is enabled. If not set, controller will be enabled if `master.instance` is empty.
|
||||
| `master.replicaCount` | integer | 1 | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified |
|
||||
| `master.podSecurityContext` | dict | {} | SecurityContext holds pod-level security attributes and common container settings |
|
||||
| `master.service.type` | string | ClusterIP | NFD master service type |
|
||||
|
|
Loading…
Add table
Reference in a new issue