1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
node-feature-discovery/node-feature-discovery-job.yaml.template
Markus Lehtonen ce129aef88 Implement kernel config detection
This implementation only detects kconfig options ("NO_HZ", "NO_HZ_IDLE",
"NO_HZ_FULL" and "PREEMPT"). The corresponding node labels will be
  node.alpha.kubernetes-incubator.io/nfd-kernel-config.<option name>

Currently, only bool and tristate (i.e. '=y' or '=m') kernel config
options are supported. Other kconfig types (e.g. string or int) are
simply ignored. If the kconfig flag is set to '=y' or '=m', the
corresponding node label will be present and it's value will be 'true'.
2018-12-04 09:34:56 +02:00

43 lines
1.1 KiB
Text

apiVersion: batch/v1
kind: Job
metadata:
labels:
app: node-feature-discovery
name: node-feature-discovery
spec:
completions: COMPLETION_COUNT
parallelism: PARALLELISM_COUNT
template:
metadata:
labels:
app: node-feature-discovery
spec:
hostNetwork: true
serviceAccount: node-feature-discovery
containers:
- env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.3.0
name: node-feature-discovery
args:
- "--oneshot"
ports:
- containerPort: 7156
hostPort: 7156
volumeMounts:
- name: host-boot
mountPath: "/host-boot"
readOnly: true
- name: host-sys
mountPath: "/host-sys"
restartPolicy: Never
volumes:
- name: host-boot
hostPath:
path: "/boot"
- name: host-sys
hostPath:
path: "/sys"