Skip to content

Latest commit

 

History

History

webhook

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Client requests for nginx service

This example demonstrates how the client can get connectivity to the nginx-server via NSM. Client pod and server deployment located on different nodes.

Requires

Make sure that you have completed steps from features

Run

Deploy client and nginx-nse

kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=5b7e8d3ab475ba2be433d1de9b648206987989d7

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>"

Cleanup

Delete ns:

kubectl delete ns ns-webhook