-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- create new dev overlay - create skaffold yaml - add tasks to create/clean local k8s dev env - update README Signed-off-by: adrianc <[email protected]>
- Loading branch information
1 parent
81612a0
commit 8eb513f
Showing
5 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: nic-feature-discovery | ||
|
||
patches: | ||
- target: | ||
version: v1 | ||
group: apps | ||
kind: DaemonSet | ||
name: nic-feature-discovery-ds | ||
patch: |- | ||
- op: replace | ||
path: /spec/template/spec/containers/0/args | ||
value: ["--v=5", "--logging-format=text"] | ||
resources: | ||
- ../default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: skaffold/v4beta6 | ||
kind: Config | ||
metadata: | ||
name: nic-feature-discovery | ||
build: | ||
artifacts: | ||
- image: ghcr.io/mellanox/nic-feature-discovery | ||
docker: | ||
dockerfile: Dockerfile | ||
manifests: | ||
kustomize: | ||
paths: | ||
- deployment/k8s/base | ||
profiles: | ||
- name: local-dev | ||
manifests: | ||
kustomize: | ||
paths: | ||
- deployment/k8s/overlays/dev | ||
activation: | ||
- command: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '3' | ||
|
||
tasks: | ||
start: | ||
desc: deploy using skaffold to k8s using current kube context (run with -o interleaved for interactive output) | ||
vars: | ||
NFD_VERSION: v0.13.3 | ||
cmd: | | ||
minikube --profile nfd-dev start | ||
# this one will point docker cli to the same daemon as used by minikube nfd-dev cluster | ||
# that way skaffold will build images in the correct local repo. | ||
eval $(minikube -p nfd-dev docker-env) | ||
kubectl apply -k "https://github.com/kubernetes-sigs/node-feature-discovery/deployment/overlays/default?ref={{.NFD_VERSION}}" | ||
skaffold dev | ||
clean: | ||
desc: clean local k8s dev cluster | ||
cmd: minikube --profile nfd-dev delete |