Skip to content

Very simple UDP client and server code snippets for trying UDP in AKS

License

Notifications You must be signed in to change notification settings

arsenvlad/aks-udp-simple-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AKS UDP Simple Tester Code Snippets

Very simple UDP client and server code snippets for trying UDP in AKS

client/server Go code snippets are based on https://github.com/jpoon/kubernetes-udp

# Configure SSH on nodes (if needed)
az vmss extension set  --resource-group MC_avaks1_avaks1_eastus2 --vmss-name aks-agentpool-96171998-vmss --name VMAccessForLinux --publisher Microsoft.OSTCExtensions --version 1.4 --protected-settings "{\"username\":\"azureuser\", \"ssh_key\":\"PUBLIC SSH KEY\"}"
az vmss update-instances --instance-ids * --resource-group MC_avaks1_avaks1_eastus2 --name aks-agentpool-96171998-vmss
# Run SSH node
kubectl run -it --rm aks-ssh --image=debian
apt-get update && apt-get install openssh-client -y
kubectl cp /.ssh/id_rsa aks-ssh:/id_rsa
# Build test apps
cd client
docker build -t avcode613/udp-client:v4 .
docker push avcode613/udp-client:v4

cd server
docker build -t avcode613/udp-server:v4 .
docker push avcode613/udp-server:v4
# Deploy server
kubectl apply -f server.yaml

# Look for server LoadBalancer IP
kubectl get services
# Update client.yaml with the public service IP of the server and deploy
kubectl apply -f client.yaml
# Look at server and client logs
kubectl get pods
kubectl logs --tail=-1 --follow=true <pod-name>

About

Very simple UDP client and server code snippets for trying UDP in AKS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published