Skip to content

Commit

Permalink
Use the latest NFD instance
Browse files Browse the repository at this point in the history
This patch also configures '--instance' option for nfd-master to
be able to deploy several NFD instances in one cluster.

Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
  • Loading branch information
e0ne committed Feb 24, 2021
1 parent 26005d6 commit 744e369
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: master
appVersion: v0.6.0-233-g3e00bfb
description: |
Detects hardware features available on each node in a Kubernetes cluster, and advertises
those features using node labels.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ spec:
resources:
{{- toYaml .Values.master.resources | nindent 12 }}
args:
{ { - if .Values.master.instance | empty | not } }
{{- if .Values.master.instance | empty | not }}
- "--instance={{ .Values.master.instance }}"
{ { - end } }
{{- end }}
## Enable TLS authentication
## The example below assumes having the root certificate named ca.crt stored in
## a ConfigMap named nfd-ca-cert, and, the TLS authentication credentials stored
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/*
Copyright 2020 NVIDIA
Copyright 2021 NVIDIA

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ spec:
args:
- "--sleep-interval=60s"
- "--server={{ include "node-feature-discovery.fullname" . }}-master:{{ .Values.master.service.port }}"
{{- with .Values.worker.options }}
- --options={{- toJson . }}
{{- end }}
## Enable TLS authentication (1/3)
## The example below assumes having the root certificate named ca.crt stored in
## a ConfigMap named nfd-ca-cert, and, the TLS authentication credentials stored
Expand Down
21 changes: 13 additions & 8 deletions deployment/network-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ sriovNetworkOperator:

# Node Feature discovery chart related values
node-feature-discovery:
image:
pullPolicy: IfNotPresent
master:
instance: "nvidia.networking"
worker:
tolerations:
- key: "node-role.kubernetes.io/master"
Expand All @@ -34,15 +38,16 @@ node-feature-discovery:
operator: "Equal"
value: "present"
effect: "NoSchedule"
options:
config: |
sources:
pci:
deviceClassWhitelist:
- "02"
- "0200"
- "0207"
deviceLabelFields:
- vendor
pci:
deviceClassWhitelist:
- "02"
- "0200"
- "0207"
deviceLabelFields:
- vendor
# General Operator related values
# The operator element allows to deploy network operator from an alternate location
Expand Down

0 comments on commit 744e369

Please sign in to comment.