1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/node-feature-discovery-job.yaml.template
Markus Lehtonen 41f9a14a24
Convert templates and examples from json to yaml (#108)
Convert resource templates from json to yaml

Yaml is easier and less error prone to modify by hand. It also allows
comments which can be especially useful in the templates.
2018-09-27 14:54:45 +03:00

37 lines
928 B
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-sys
mountPath: "/host-sys"
restartPolicy: Never
volumes:
- name: host-sys
hostPath:
path: "/sys"