Added iperf3-server

This commit is contained in:
Ultradesu
2025-11-18 21:31:57 +02:00
parent 22b359a7ee
commit 055ef8aa77
3 changed files with 11 additions and 18 deletions

View File

@@ -11,6 +11,8 @@ spec:
labels:
app: iperf3-server
spec:
hostname: iperf3-$(NODE_NAME)
subdomain: iperf3
containers:
- name: iperf3-server
image: networkstatic/iperf3:latest
@@ -18,6 +20,11 @@ spec:
ports:
- containerPort: 5201
protocol: TCP
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
resources:
requests:
memory: "64Mi"
@@ -25,7 +32,6 @@ spec:
limits:
memory: "256Mi"
cpu: "500m"
hostNetwork: true
tolerations:
- effect: NoSchedule
operator: Exists

View File

@@ -3,5 +3,8 @@ kind: Kustomization
resources:
- daemonset.yaml
- service.yaml
- service-headless.yaml
- iperf3-exporter-daemonset.yaml
- iperf3-exporter-service.yaml
- servicemonitor.yaml

View File

@@ -1,16 +0,0 @@
---
apiVersion: v1
kind: Service
metadata:
name: iperf3-server
spec:
type: NodePort
selector:
app: iperf3-server
ports:
- name: iperf3
protocol: TCP
port: 5201
targetPort: 5201
nodePort: 30201