Skip to content

Instantly share code, notes, and snippets.

@aojea
Created October 19, 2023 10:46
Show Gist options
  • Save aojea/0941903fd6ad7a2ce1d59a1a95eb209d to your computer and use it in GitHub Desktop.
Save aojea/0941903fd6ad7a2ce1d59a1a95eb209d to your computer and use it in GitHub Desktop.
hostport udp pods
apiVersion: apps/v1
kind: Deployment
metadata:
name: server-deployment
labels:
app: MyApp
spec:
replicas: 2
selector:
matchLabels:
app: MyApp
template:
metadata:
labels:
app: MyApp
spec:
containers:
- name: agnhost
image: k8s.gcr.io/e2e-test-images/agnhost:2.39
args:
- netexec
- --udp-port=1338
ports:
- containerPort: 1338
hostPort: 1338
name: p2pudp
protocol: UDP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment