diff --git a/apps/admission-webhook-k8s/admission-webhook.yaml b/apps/admission-webhook-k8s/admission-webhook.yaml index b90377a6f850..49a83e5e0ccc 100644 --- a/apps/admission-webhook-k8s/admission-webhook.yaml +++ b/apps/admission-webhook-k8s/admission-webhook.yaml @@ -43,3 +43,5 @@ spec: value: ghcr.io/networkservicemesh/ci/cmd-nsc:96ccc8a - name: NSM_INIT_CONTAINER_IMAGES value: ghcr.io/networkservicemesh/ci/cmd-nsc-init:3dc57ef + - name: NSM_LABELS + value: spiffe.io/spiffe-id:true diff --git a/examples/basic/README.md b/examples/basic/README.md index 3e5baee25736..c1c5ed6b0922 100644 --- a/examples/basic/README.md +++ b/examples/basic/README.md @@ -34,6 +34,13 @@ kubectl create ns nsm-system kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=5012a8aafd293534e2a9d98903f6d339ef44ceab ``` +3. Wait for admission-webhook-k8s: + +```bash +WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') +kubectl wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system +``` + ## Cleanup To free resouces follow the next command: diff --git a/examples/features/dns/README.md b/examples/features/dns/README.md index f2fa5a3e105b..7611641c36c9 100644 --- a/examples/features/dns/README.md +++ b/examples/features/dns/README.md @@ -9,12 +9,6 @@ Make sure that you have completed steps from [features](../) ## Run -Note: Admission webhook is required and should be started at this moment. -```bash -WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') -kubectl wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system -``` - 1. Create test namespace: ```bash NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/5012a8aafd293534e2a9d98903f6d339ef44ceab/examples/features/namespace.yaml)[0]) diff --git a/examples/features/ipv6/Kernel2Kernel/README.md b/examples/features/ipv6/Kernel2Kernel/README.md index a0a57a4be780..36586fc2613b 100644 --- a/examples/features/ipv6/Kernel2Kernel/README.md +++ b/examples/features/ipv6/Kernel2Kernel/README.md @@ -27,37 +27,39 @@ kind: Kustomization namespace: ${NAMESPACE} +resources: +- client.yaml bases: -- https://github.com/networkservicemesh/deployments-k8s/apps/nsc-kernel?ref=5012a8aafd293534e2a9d98903f6d339ef44ceab - https://github.com/networkservicemesh/deployments-k8s/apps/nse-kernel?ref=5012a8aafd293534e2a9d98903f6d339ef44ceab patchesStrategicMerge: -- patch-nsc.yaml - patch-nse.yaml EOF ``` -Create NSC patch: +Create Client: ```bash -cat > patch-nsc.yaml < client.yaml < patch-nse.yaml < patch-nsc.yaml < client.yaml < patch-nsc.yaml < client.yaml < patch-nse.yaml < patch-nsc.yaml < client.yaml < patch-nse.yaml < patch-nsc.yaml < client.yaml < patch-nsc.yaml < client.yaml < patch-nsc.yaml < client.yaml < patch-nse.yaml < patch-nsc.yaml < client.yaml < patch-nse.yaml < patch-nsc.yaml < client.yaml < patch-nse.yaml < patch-nsc.yaml < client.yaml < patch-nse.yaml <