Documentation ¶
Index ¶
Constants ¶
const Iperf3ServerPort = 5201
Iperf3ServerPort is the TCP or UDP port where the iperf3 server deployment and service listens
Variables ¶
This section is empty.
Functions ¶
func NewClientJob ¶ added in v0.2.1
func NewClientJob(cr *perfv1alpha1.Iperf3) *batchv1.Job
NewClientJob creates an Iperf3 Client Job (targeting the Server Deployment via the Server Service) from the provided IPerf3 Benchmark Definition.
func NewServerDeployment ¶
func NewServerDeployment(cr *perfv1alpha1.Iperf3) *appsv1.Deployment
NewServerDeployment create a iperf3 server deployment from the provided Iperf3 Benchmark Definition.
func NewServerService ¶
func NewServerService(cr *perfv1alpha1.Iperf3) *corev1.Service
NewServerService creates k8s headless service (which targets the server deployment) from the Iperf3 Benchmark Definition
Types ¶
type Reconciler ¶
Reconciler provides fields from manager to reconciler
func (*Reconciler) Reconcile ¶
Reconcile Iperf3 Benchmark Requests by creating:
- iperf3 server deployment
- iperf3 server service
- iperf3 client pod
The creation of iperf3 client pod is postponed until the server deployment completes. Once the iperf3 client pod is completed, the server deployment and service objects are removed from k8s.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers the Iperf3Reconciler with the provided manager