Helm chartv1.12.0App 6.14.00

A Helm chart for Gigamon UCT-C

About this chart

UCT-C Helm Chart

Description

This Helm chart deploys UCT-C solution, including the UCT-C Controller and UCT-C Tap, on a Kubernetes cluster. UCT-C enables network visibility for containerized environments.

Note :

We can create Openshift route manually and pass it to "ext_load_balancer" variable

Prerequisites

  • Kubernetes 1.27+

  • Helm 3+

  • Namespace "uctc" should be available. Run the below command to create it.

        oc create ns uctc
    
  • Secret with registry credentials (to pull image). This is optional if images are in local registry which is not password / token protected

    For example if you have the secret.json from Gigamon. Run the below command to create the required secret.

    oc create secret generic gigamon --from-file=.dockerconfigjson=secrets.json --type=kubernetes.io/dockerconfigjson -n uctc
    
    
  • Service Account will be created through helm itself

Chart Details

  • Chart Name: uctc
  • Chart Version: 1.12.0
  • Gigamon Version: 6.14.00

Configuration

The following table lists the configurable parameters and their default values defined in the values.yaml file:

UCT-C Controller Configuration

ParameterDescriptionDefault Value
uctcController.image.repositoryUCT-C Controller Docker image repositorygigamoneng/gigamon-gigavue-uctc-cntlr
uctcController.image.tagUCT-C Controller Docker image tag6.14.00-424867
uctcController.nameOverride#This value will override the default resource's name generated by the chart's templatesuctc-cntlr
uctcController.fullnameOverride#The provided name will combine with the default resource's name
uctcController.podAnnotationsAnnotations can be added based on the user requirements...
uctcController.service.labelsNeeded labels can be added hereapplication: "uctc"
uctcController.service.typeType of the service to be createdClusterIP
uctcController.fm_ipIPv4 address of the GigaVUE FM. Only this is given but not fm_ipv6, then FM will use IPv4 for communication.If both are given preferred IP stack will be chosen based on uctc_cntlr_fm_ip_config
uctcController.fm_ipv6IPv6 address of the GigaVUE FM. Only this is given but not fm_ip, then FM will use IPv6 for communication. If both are given preferred IP stack will be chosen based on uctc_cntlr_fm_ip_config
uctcController.fmha_ip_listIPv4/V6 addresses of the GigaVUE FM for HA, ip address separated by comma.
uctcController.uctc_svc_rest_portPort at which UCTC Controller listens for FM request. If OpenShift Route is enabled set this value to 4438443
uctcController.ext_load_balancerExternal loadbalancer IP / DNS using which FM communicates with UCT-C Controller. Leave this field empty if OpenShift Route is enabled
uctcController.k8s_cluster_urlK8S cluster end-point (typically, master nodes with default port of 6443)...
uctcController.uctc_cntlr_fm_ip_configthe user's preferred IP stack for communication between the UCT-C controller and a dual-stack FMIPv4
uctcController.uctc_cntlr_fallback_configIf enabled as 'True', the uctc_cntlr_fm_ip_config will utilize the alternative IP stack if the user's preferred one is unavailableTrue
uctcController.resources.limits.cpuExpressed in CPU units, it represents the maximum processing power that the UCT-C controller pod is allowed to use100m
uctcController.resources.limits.memoryExpressed in mebibytes, it represents the maximum amount of RAM that the UCT-C controller pod is allowed to consume256Mi
uctcController.resources.requests.cpuExpressed in CPU units, it represents the minimum processing power that the UCT-C controller pod needs100m
uctcController.resources.requests.memoryExpressed in mebibytes, it represents the minimum amount of RAM that the UCT-C controller pod needs256Mi
uctcController.nodeSelectorNode labels can be specified to target specific nodes in the Kubernetes cluster where the UCT-C Controller pod should be scheduled...
uctcController.tolerationsTolerations can be specified to tolerate specific taints on nodes...
uctcController.affinityAffinity rules can be specified to place UCT-C Controller pod on nodes based on complex rules...
uctcController.fm_fqdnSpecifies the GigaVUE-FM HA FQDN value used by the UCT-C Controller for communication with the GigaVUE-FM HA group. When this parameter is set, the controller uses the IP addresses resolved from the FQDN...
uctcController.fmha_ip_listSpecifies a comma-separated list of GigaVUE-FM HA IP addresses used by the UCT-C Controller for communication with the GigaVUE-FM HA group. If fm_fqdn is not set, the controller uses the IP addresses provided in fmha_ip_list by default....

UCT-C Tap Configuration

ParameterDescriptionDefault Value
uctcTap.image.repositoryUCT-C Tap Docker image repositorygigamoneng/gigamon-gigavue-uctc-tap
uctcTap.image.tagUCT-C Tap Docker image tag6.14.00-424867
uctcTap.nameOverrideThis value will override the default resource's name generated by the chart's templates...
uctcTap.fullnameOverrideThis value will combine with the default resource's name...
uctcTap.podAnnotationsAnnotations to be added to the pod...
uctcTap.podSecurityContextSecurity context to be added to the pod...
uctcTap.uctc_tap_ip_configUser's preferred IP stack for communication between the UCTC controller and UCTC tapIPv4
uctcTap.uctc_tap_fallback_configIf enabled as 'True', the uctc_tap_ip_config will utilize the alternative IP stack if the user's preferred one is unavailableTrue
uctcTap.resources.limits.cpuExpressed in CPU units, it represents the maximum processing power that the UCT-C Tap pod is allowed to use1
uctcTap.resources.limits.memoryExpressed in mebibytes, it represents the maximum amount of RAM that the UCT-C Tap pod is allowed to consume1Gi
uctcTap.resources.requests.cpuExpressed in CPU units, it represents the minimum processing power that the UCT-C Tap pod needs1
uctcTap.resources.requests.memoryExpressed in mebibytes, it represents the minimum amount of RAM that the UCT-C Tap pod needs1Gi
uctcTap.cri_socket_pathKey-in the container runtime specific socket path for e.g. for cri-o -> "/run/crio/crio.sock" containerd -> /run/containerd/containerd.sock and docker -> /var/run/docker.sock...
uctcTap.nodeSelectorNode labels can be specified to target specific nodes in the Kubernetes cluster where the UCT-C Tap pod should be scheduled...
uctcTap.tolerationsTolerations can be specified to tolerate specific taints on nodes...
uctcTap.affinityAffinity rules can be specified to place UCT-C tap pod on nodes based on complex rules...
uctc_policy_resp_sz This config used to configure policy response size in terms of number of pods25

Common Configuration

ParameterDescriptionDefault Value
namespaceNamespace in which the UCT-C components are to be deployeductc
imagePullSecretsList of image pull secrets for private registriesgigamon (customize as needed)
serviceAccount.nameName of the service account if uctcTap.serviceAccount.create is set to truegigamon
serviceAccount.createSpecifies whether a service account should be createdfalse
serviceAccount.annotationsAnnotations to be added to the service account...
serviceAccount.nameName of the service account to be created if serviceAccount.create is true or Name of the existing service account to be used if serviceAccount.create is falsegigamon
imagePullSecretsList of image pull secrets for private registriesgigamon (customize as needed)
openShift.enabledSet to 'true' if the cluster is an OpenShift clusterfalse
openShift.routeDefines configuration options for OpenShift Route integration. If using openshift route please use port 443 for uctc_svc_rest_port.
openShift.route.createSet to 'true' to create a OpenShift Route.false
openShift.route.nameSpecify the name of the route to be createduct-route
openShift.route.baseDomainBaseDomain of the OpenShift cluster. It can be retrieved by running " oc get dns cluster -o=jsonpath='{.spec.baseDomain}' "...
ingress.enabledSpecify if an Ingress controller is already installed. Setting this to 'true' will create an ingress resource. For OpenShift cluster, either openShift.route.create or ingress.enabled must be true, not both.true
ingress.annotationsAnnotations to be added to the ingress...
ingress.annotations.kubernetes.io/ingress.classClass name of the ingress controller to be usednginx
debugmodeSpecified in the hex form of 0x00[aaaa][b][c] where aaaa is the number of pcap messages to maintain before rollover, b can have the value 0 or 1 where 0=do not create pcap or 1=create pcap, and c can have the value between 1 to 4 where 1=fatal, 2=error, 3=info, 4=debug0x0A000003
securityContextConstraints.createIf the platform is OpenShift, set securityContextConstraints.create to true. This will create a custom Security Context Constraint (SCC) with the required permissions for the UCT-C solutionFalse
securityContextConstraints.nameName of the Security context constraints (SCC) to be createdgigamon
validationSetting this to true will deploy a pre-validator pod before and a post-validator pod after the deployment of the UCT-C solutiontrue

Specify each parameter using the --set key=value argument with the helm install command.

Customization

You can customize this Helm chart by modifying the values in the values.yaml file or by using the --set flag with the helm install command.

Installation and Upgrading

To upgrade the chart to a new version, use the following commands:


## Installation

To install the chart with the release name `my-release` in the namespace `uctc`, run the following command:

helm install my-release ./uctc -n uctc

## Upgrade

helm repo update
helm upgrade my-release ./uctc -n uctc

Troubleshooting Validator Pod Failures

Setting validation : true in values.yaml will deploy a uctc-prevalidator-pod and a uctc-postvalidator-pod that run before and after the deployment of the UCT-C solution. These pods perform checks to ensure certain conditions are met for a successful deployment. If all the checks pass, the validator pods will clean up automatically, and UCTC will be deployed successfully. If any check fails, the respective validator pod (uctc-prevalidator-pod or uctc-postvalidator-pod) will remain in an error and the Helm installation will fail.

NOTE: If there are any intermittent connectivity issues between Gigamon Fabric Manager and the cluster, set 'validation' to False before installing the Helm chart. This ensures no false negative failures.

If the Helm installation fails due to a validator pod error, follow these steps:

Check logs

Use the following command to review the logs of the failing pod and identify the issue. Specify the pod name depending on which pod failed.


# Check logs 

kubectl logs < uctc-prevalidator-pod | uctc-postvalidator-pod > -n uctc

Delete the Helm Release

Before retrying the installation, delete the failed Helm release


# Delete the Helm release

helm uninstall my-release -n uctc

Delete the Error Pod

After identifying and addressing the cause of the issue, delete the validator-pod ( uctc-prevalidator-pod or uctc-postvalidator-pod depending on which pod failed )


# Delete the error pod

kubectl delete pod <uctc-prevalidator-pod | uctc-postvalidator-pod> -n uctc

After resolving the issue, re-run the Helm installation.

Deploy uctc with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has uctc 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 chartuctc is pinned at v1.12.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