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