Skip to content

Latest commit

 

History

History
 
 

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

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