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:
|
2020-10-01 12:37:34 +00:00
|
|
|
completions: NUM_NODES
|
|
|
|
parallelism: NUM_NODES
|
2018-09-27 11:54:45 +00:00
|
|
|
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-10-08 17:23:43 +00:00
|
|
|
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
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"
|
2020-11-20 09:32:33 +00:00
|
|
|
readOnly: true
|
2019-04-20 00:21:38 +00:00
|
|
|
- name: source-d
|
|
|
|
mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
|
2020-11-20 09:32:33 +00:00
|
|
|
readOnly: true
|
2019-04-20 00:21:38 +00:00
|
|
|
- name: features-d
|
|
|
|
mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
|
2020-11-20 09:32:33 +00:00
|
|
|
readOnly: true
|
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/"
|