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
|
2018-09-27 11:54:45 +00:00
|
|
|
spec:
|
|
|
|
completions: COMPLETION_COUNT
|
|
|
|
parallelism: PARALLELISM_COUNT
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: node-feature-discovery
|
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
2019-01-29 14:21:48 +00:00
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
2018-09-27 11:54:45 +00:00
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: NODE_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.3.0
|
2019-01-11 13:55:28 +00:00
|
|
|
name: nfd-worker
|
|
|
|
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
|
|
|
ports:
|
|
|
|
- containerPort: 7156
|
|
|
|
hostPort: 7156
|
|
|
|
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/"
|