mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-12 03:36:58 +00:00
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>
36 lines
905 B
YAML
36 lines
905 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: nfd
|
|
name: nfd-master
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nfd-master
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nfd-master
|
|
spec:
|
|
serviceAccount: nfd-master
|
|
enableServiceLinks: false
|
|
tolerations: []
|
|
containers:
|
|
- name: nfd-master
|
|
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
|
imagePullPolicy: Always
|
|
livenessProbe:
|
|
exec:
|
|
command: ["/usr/bin/grpc_health_probe", "-addr=:8080"]
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
exec:
|
|
command: ["/usr/bin/grpc_health_probe", "-addr=:8080"]
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
failureThreshold: 10
|
|
command:
|
|
- "nfd-master"
|