mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
3fff409f6d
Similar to the nfd-worker, in this PR we want to support the dynamic run-time configurability through a config file for the nfd-master. We'll use a json or yaml configuration file along with the fsnotify in order to watch for changes in the config file. As a result, we're allowing dynamic control of logging params, allowed namespaces, extended resources, label whitelisting, and denied namespaces. Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
41 lines
903 B
YAML
41 lines
903 B
YAML
apiVersion: kustomize.config.k8s.io/v1alpha1
|
|
kind: Component
|
|
|
|
patches:
|
|
- path: env.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd.*
|
|
- path: securitycontext.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd.*
|
|
- path: master-affinity.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd-master
|
|
- path: worker-mounts.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd-worker
|
|
# We need separate patches for the "combined" daemonset with two containers in the pod :/
|
|
- path: env-combined.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd
|
|
- path: securitycontext-combined.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd
|
|
- path: master-affinity.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd
|
|
- path: worker-mounts-combined.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd
|
|
- path: master-mounts.yaml
|
|
target:
|
|
labelSelector: app=nfd
|
|
name: nfd-master
|