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=a93498171537efbfcfb704c5272519cc771c5ff0
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