iperf3

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
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

type Reconciler struct {
	K8S k8s.Access
	Log logr.Logger
}

Reconciler provides fields from manager to reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL