This example demonstrates how the client can get connectivity to the nginx-server via NSM. Client pod and server deployment located on different nodes.
Make sure that you have completed steps from features
Deploy client and nginx-nse
kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=7a2735f6f8c8ed02d058c1a6a2f04846a3d88cad
Wait for applications ready:
kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-webhook
kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-webhook
Try to connect from client to nginx service:
kubectl exec pods/nettools -n ns-webhook -- curl 172.16.1.100:80 | grep -o "<title>Welcome to nginx!</title>"
Delete ns:
kubectl delete ns ns-webhook