mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-31 04:04:51 +00:00
Mount source.d and features.d in template YAMLs
Signed-off-by: Jordan Jacobelli <jjacobelli@nvidia.com>
This commit is contained in:
parent
b3c942e47a
commit
5df5e5c187
4 changed files with 35 additions and 1 deletions
|
@ -284,7 +284,11 @@ supposed to print all discovered features in `stdout`, one per line.
|
||||||
directory. The file content is expected to be similar to the hook output (described above).
|
directory. The file content is expected to be similar to the hook output (described above).
|
||||||
|
|
||||||
These directories must be available inside the Docker image so Volumes and
|
These directories must be available inside the Docker image so Volumes and
|
||||||
VolumeMounts must be used if standard NFD images are used.
|
VolumeMounts must be used if standard NFD images are used. The given template
|
||||||
|
files mount by default the `source.d` and the `features.d` directories
|
||||||
|
respectively from `/etc/kubernetes/node-feature-discovery/source.d/` and
|
||||||
|
`/etc/kubernetes/node-feature-discovery/features.d/` from the host. You should
|
||||||
|
update them to match your needs.
|
||||||
|
|
||||||
In both cases, the labels can be binary or non binary, using either `<name>` or
|
In both cases, the labels can be binary or non binary, using either `<name>` or
|
||||||
`<name>=<value>` format.
|
`<name>=<value>` format.
|
||||||
|
|
|
@ -81,6 +81,10 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
mountPath: "/host-sys"
|
mountPath: "/host-sys"
|
||||||
|
- name: source-d
|
||||||
|
mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
|
||||||
|
- name: features-d
|
||||||
|
mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
|
||||||
volumes:
|
volumes:
|
||||||
- name: host-boot
|
- name: host-boot
|
||||||
hostPath:
|
hostPath:
|
||||||
|
@ -91,3 +95,9 @@ spec:
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "/sys"
|
path: "/sys"
|
||||||
|
- name: source-d
|
||||||
|
hostPath:
|
||||||
|
path: "/etc/kubernetes/node-feature-discovery/source.d/"
|
||||||
|
- name: features-d
|
||||||
|
hostPath:
|
||||||
|
path: "/etc/kubernetes/node-feature-discovery/features.d/"
|
||||||
|
|
|
@ -44,6 +44,10 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
mountPath: "/host-sys"
|
mountPath: "/host-sys"
|
||||||
|
- name: source-d
|
||||||
|
mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
|
||||||
|
- name: features-d
|
||||||
|
mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
|
||||||
## Enable TLS authentication (2/3)
|
## Enable TLS authentication (2/3)
|
||||||
# - name: nfd-ca-cert
|
# - name: nfd-ca-cert
|
||||||
# mountPath: "/etc/kubernetes/node-feature-discovery/trust"
|
# mountPath: "/etc/kubernetes/node-feature-discovery/trust"
|
||||||
|
@ -61,6 +65,12 @@ spec:
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "/sys"
|
path: "/sys"
|
||||||
|
- name: source-d
|
||||||
|
hostPath:
|
||||||
|
path: "/etc/kubernetes/node-feature-discovery/source.d/"
|
||||||
|
- name: features-d
|
||||||
|
hostPath:
|
||||||
|
path: "/etc/kubernetes/node-feature-discovery/features.d/"
|
||||||
## Enable TLS authentication (3/3)
|
## Enable TLS authentication (3/3)
|
||||||
# - name: nfd-ca-cert
|
# - name: nfd-ca-cert
|
||||||
# configMap:
|
# configMap:
|
||||||
|
|
|
@ -39,6 +39,10 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
mountPath: "/host-sys"
|
mountPath: "/host-sys"
|
||||||
|
- name: source-d
|
||||||
|
mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
|
||||||
|
- name: features-d
|
||||||
|
mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
volumes:
|
volumes:
|
||||||
- name: host-boot
|
- name: host-boot
|
||||||
|
@ -50,3 +54,9 @@ spec:
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "/sys"
|
path: "/sys"
|
||||||
|
- name: source-d
|
||||||
|
hostPath:
|
||||||
|
path: "/etc/kubernetes/node-feature-discovery/source.d/"
|
||||||
|
- name: features-d
|
||||||
|
hostPath:
|
||||||
|
path: "/etc/kubernetes/node-feature-discovery/features.d/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue