ibm-f5bigip-controller

by Helm

Helm chartv1.1.0Apache-2.0

A Helm chart for integrating f5-bigip controller with ICP

About this chart

F5 BIGIP Controller

F5 BIGIP Controller configures BIG-IP objects for applications in a Kubernetes cluster, serving North-South traffic.

Introduction

The F5 BIG-IP Controller for Kubernetes runs in a Kubernetes Pod. It uses F5 Resources to determine:

  • what objects to configure on your BIG-IP system, and
  • to which Kubernetes Service those objects belong

The k8s-bigip-ctlr watches the Kubernetes API for the creation, modification, or deletion of Kubernetes objects. For some Kubernetes objects, the Controller responds by creating, modifying, or deleting objects in the BIG-IP system.

Chart Details

This chart will do the following:

  • The chart creates a Deployment for one Pod containing the k8s-bigip-ctlr and its supporting RBAC resources.
  • Can be created in any namespace
  • More than one release can be created from this Chart to allow the F5 BIGIP admin to create multiple controllers to connect to multiple F5 BIGIP Devices
  • One release can be created to watch over one or more namespaces.

Prerequisites

  • Kubernetes 1.6+ with Beta APIs enabled
  • Already have a BIG-IP device licensed and provisioned for your requirements
  • Already have calico provisioned and running in your Kubernetes cluster
  • Already have the BIG-IP device added as a Calico BGP Global Peer to the Calico Node Mesh

Resources Required

The k8s-bigip-ctlr container has the following default resource requests and limits:

ContainerMemory RequestMemory LimitCPU RequestCPU Limit
k8s-bigip-ctlr128Mi256Mi100m200m

Installing the Chart

You should create a new partition on your BIG-IP system. The BIG-IP Controller can not manage objects in the /Common partition.

Note: Make sure that one partition is managed from one F5 BIGIP k8s Controller. Managing the same partition from mutiple F5 BIGIP k8s Controllers may lead to unexpected behavior

To install the chart with the release name my-release:

$ helm install --name my-release f5-bigip-controller --namespace kube-system --set bigIp.url=1.2.3.4 --set bigIp.partitionName=myPartition --set bigIp.username=admin --set bigIp.password=password

The command deploys F5 BIG-IP Controller on the Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.

Note: When integrating the F5 BIG-IP Controller with IBM Cloud Private, if you wish to host the k8s-bigip-ctlr on the master node, provide the following values for nodeSelector and tolerations.

nodeSelector:

{"role": "master"}

tolerations:

[{"key":"dedicated","operator":"Exists","effect":"NoSchedule"},{"key":"CriticalAddonsOnly","operator":"Exists"}]

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the F5 BIG-IP Controller chart and their default values.

ParameterDescriptionDefault
bigIp.urlBIG-IP admin IP addressnil
bigIp.partitionNameBIG-IP partition in which to configure objectsnil
bigIp.usernameBIG-IP iControl REST usernamenil
bigIp.passwordBIG-IP iControl REST passwordnil
bigIp.poolMemberTypeThe type of BIG-IP pool members you want to create - cluster or nodeportcluster
bigIp.defaultIngressIpThe controller configures a virtual server at this IP address for all Ingresses with the annotation: virtual-server.f5.com/ip: 'controller-default'nil
bigIp.namespacesList of Kubernetes namespace(s) to watch. Example: ["ns1","ns2"][]
bigIp.nodeLabelSelectorTells the k8s-bigip-ctlr to watch only nodes with this labelnil
bigIp.extraArgsRest of the k8s-bigip-ctlr options. Provide a map in the form of {"key":"val", ...}{}
image.repositoryk8s-bigip-ctlr image repositoryf5networks/k8s-bigip-ctlr
image.tagk8s-bigip-ctlr image tag1.6.0
image.pullPolicyImage pull policyIfNotPresent
nodeSelectorConstrain the controller to only be able to run on particular node{}
tolerationsSchedule controller onto a node with matching taints[]
affinity Allow controller to be attracted to a set of nodes{}

For more information please refer to the F5 BIG-IP Controller for Kubernetes documentation.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml f5-bigip-controller

Tip: You can use the default values.yaml

Limitations

  • This Chart works only with IBM Cloud Private
  • This Chart can run only on amd64 architecture type.

Deploy ibm-f5bigip-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-f5bigip-controller on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartibm-f5bigip-controller is pinned at v1.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply