Add node-feature-discovery (#236)

This adds the node-feature-discovery component.

Partialy implements #32

Signed-off-by: Justin Scott <justin.a.scott@intel.com>
This commit is contained in:
Justin Scott
2019-10-24 16:35:47 -07:00
committed by GitHub
parent 02880b82ee
commit 3984a18b18
2 changed files with 18 additions and 1 deletions
+13 -1
View File
@@ -24,6 +24,7 @@ METRICS_VER="${CLRK8S_METRICS_VER:-v0.3.5}"
PROMETHEUS_VER="${CLRK8S_PROMETHEUS_VER:-f458e85e5d7675f7bc253072e1b4c8892b51af0f}"
CNI=${CLRK8S_CNI:-"canal"}
RUNNER=${CLRK8S_RUNNER:-"crio"}
NFD_VER="${CLRK8S_NFD_VER:-v0.4.0}"
function print_usage_exit() {
exit_code=${1:-0}
@@ -264,7 +265,6 @@ function metallb() {
kubectl apply -k "${METALLB_DIR}/overlays/${METALLB_VER}"
}
function npd() {
NPD_VER=${1:-v0.6.6}
NPD_URL="https://github.com/kubernetes/node-problem-detector.git"
@@ -274,6 +274,16 @@ function npd() {
kubectl apply -k "${NPD_DIR}/overlays/${NPD_VER}"
}
# node feature discovery
function nfd() {
NFD_VER=${1:-$NFD_VER}
NFD_URL="https://github.com/kubernetes-sigs/node-feature-discovery.git"
NFD_DIR="node-feature-discovery"
get_repo "${NFD_URL}" "${NFD_DIR}/overlays/${NFD_VER}"
set_repo_version "${NFD_VER}" "${NFD_DIR}/overlays/${NFD_VER}/node-feature-discovery"
kubectl apply -k "${NFD_DIR}/overlays/${NFD_VER}"
}
function miscellaneous() {
# dashboard
@@ -340,6 +350,7 @@ command_handlers[storage]=storage
command_handlers[monitoring]=monitoring
command_handlers[metallb]=metallb
command_handlers[npd]=npd
command_handlers[nfd]=nfd
declare -A command_help
command_help[init]="Only inits a cluster using kubeadm"
@@ -347,6 +358,7 @@ command_help[cni]="Setup network for running cluster"
command_help[minimal]="init + cni + kata + metrics"
command_help[all]="minimal + storage + monitoring + miscellaneous"
command_help[help]="show this message"
command_help[nfd]="node feature discovery"
cd "${SCRIPT_DIR}"
@@ -0,0 +1,5 @@
resources:
- node-feature-discovery/nfd-daemonset-combined.yaml.template
- node-feature-discovery/nfd-worker-daemonset.yaml.template