Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nluaces/test-udp-bridge
test case scenario with services exposed over UDP protocol
https://github.com/nluaces/test-udp-bridge
skupper udp
Last synced: about 1 month ago
JSON representation
test case scenario with services exposed over UDP protocol
- Host: GitHub
- URL: https://github.com/nluaces/test-udp-bridge
- Owner: nluaces
- License: apache-2.0
- Created: 2023-04-05T13:10:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T16:14:02.000Z (almost 2 years ago)
- Last Synced: 2024-06-19T17:59:29.555Z (7 months ago)
- Topics: skupper, udp
- Language: Go
- Homepage: https://skupper.io/
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-udp-bridge
This test is using an external udp brigde to expose services in Skupper.
You can find the udp bridge code in this repository: https://github.com/grs/skupper-udp-bridge
## environment setup
For this test, we will need to set up two skupper sites and create a link between them.
In order to do that, you can follow [this tutorial](https://skupper.io/start/index.html).
## steps
### 1. udp-server setup
Deploy the udp-server in one of the skupper sites:```
kubectl apply -f deployment-server.yaml
```Export the deployment as a service using the external udp bridge:
```
skupper expose deployment udp-server --port 8000 --protocol udp --bridge-image=quay.io/skupper/bridge-server
```### 2. run udp-client
In the other cluster, run the udp-client:
```
kubectl run udp-client --image=quay.io/skupper/udp-client --restart="OnFailure"
```The client will send a message using the UDP protocol to the address `udp-server:8000`
### 3. check the logs
The udp-server will print in its log the message received from the client:
`udp-client logs`
```
$ kubectl logs -f udp-clientSent message to server: Hello, server!
````udp-server logs`
```
$ kubectl logs -f udp-server-7dc558794c-clxts
Listening for UDP packets on :8000
Received 14 bytes from 10.244.0.7:33016: Hello, server!
```