2018-09-27 14:54:45 +03:00
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: node-feature-discovery
|
2019-01-11 15:55:28 +02:00
|
|
|
name: nfd-worker
|
2019-05-28 17:13:52 +03:00
|
|
|
namespace: node-feature-discovery
|
2018-09-27 14:54:45 +03:00
|
|
|
spec:
|
2020-10-01 15:37:34 +03:00
|
|
|
completions: NUM_NODES
|
|
|
|
parallelism: NUM_NODES
|
2018-09-27 14:54:45 +03:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: node-feature-discovery
|
|
|
|
spec:
|
2019-01-29 16:21:48 +02:00
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
2018-09-03 11:37:47 +03:00
|
|
|
affinity:
|
|
|
|
podAntiAffinity:
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- topologyKey: kubernetes.io/hostname
|
|
|
|
labelSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: app
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- node-feature-discovery
|
2018-09-27 14:54:45 +03:00
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: NODE_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
2020-08-07 10:15:22 +03:00
|
|
|
image: k8s.gcr.io/nfd/node-feature-discovery:v0.6.0
|
2019-01-11 15:55:28 +02:00
|
|
|
name: nfd-worker
|
2020-05-28 15:16:15 +03:00
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop: ["ALL"]
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
runAsNonRoot: true
|
2019-01-11 15:55:28 +02:00
|
|
|
command:
|
|
|
|
- "nfd-worker"
|
2018-09-27 14:54:45 +03:00
|
|
|
args:
|
|
|
|
- "--oneshot"
|
2019-01-29 16:21:48 +02:00
|
|
|
- "--server=nfd-master:8080"
|
2018-09-27 14:54:45 +03:00
|
|
|
volumeMounts:
|
2018-07-05 16:29:38 +03:00
|
|
|
- name: host-boot
|
|
|
|
mountPath: "/host-boot"
|
|
|
|
readOnly: true
|
2018-07-10 12:00:02 +03:00
|
|
|
- name: host-os-release
|
|
|
|
mountPath: "/host-etc/os-release"
|
|
|
|
readOnly: true
|
2018-09-27 14:54:45 +03:00
|
|
|
- name: host-sys
|
|
|
|
mountPath: "/host-sys"
|
2019-04-19 17:21:38 -07:00
|
|
|
- name: source-d
|
|
|
|
mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
|
|
|
|
- name: features-d
|
|
|
|
mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
|
2018-09-27 14:54:45 +03:00
|
|
|
restartPolicy: Never
|
|
|
|
volumes:
|
2018-07-05 16:29:38 +03:00
|
|
|
- name: host-boot
|
|
|
|
hostPath:
|
|
|
|
path: "/boot"
|
2018-07-10 12:00:02 +03:00
|
|
|
- name: host-os-release
|
|
|
|
hostPath:
|
|
|
|
path: "/etc/os-release"
|
2018-09-27 14:54:45 +03:00
|
|
|
- name: host-sys
|
|
|
|
hostPath:
|
|
|
|
path: "/sys"
|
2019-04-19 17:21:38 -07:00
|
|
|
- name: source-d
|
|
|
|
hostPath:
|
|
|
|
path: "/etc/kubernetes/node-feature-discovery/source.d/"
|
|
|
|
- name: features-d
|
|
|
|
hostPath:
|
|
|
|
path: "/etc/kubernetes/node-feature-discovery/features.d/"
|