mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
fb106558e8
Describe NFD deployment via the operator. Add minimal documentation for uninnstalling NFD. Add instructions and template spec for running "nfd-master --prune". Also modify the RBAC rules in nfd-master spec template to make it possible doing --prune (allow nfd-master to list nodes in the cluster).
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: nfd-prune
|
|
namespace: node-feature-discovery
|
|
labels:
|
|
app: nfe-prune
|
|
spec:
|
|
completions: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nfd-prune
|
|
spec:
|
|
serviceAccount: nfd-master
|
|
affinity:
|
|
nodeAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 1
|
|
preference:
|
|
matchExpressions:
|
|
- key: "node-role.kubernetes.io/master"
|
|
operator: In
|
|
values: [""]
|
|
tolerations:
|
|
- key: "node-role.kubernetes.io/master"
|
|
operator: "Equal"
|
|
value: ""
|
|
effect: "NoSchedule"
|
|
containers:
|
|
- image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
|
name: nfd-master
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop: ["ALL"]
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
command:
|
|
- "nfd-master"
|
|
args:
|
|
- "--prune"
|
|
restartPolicy: Never
|