uctc
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
| Parameter | Description | Default Value |
|---|---|---|
uctcController.image.repository | UCT-C Controller Docker image repository | gigamoneng/gigamon-gigavue-uctc-cntlr |
uctcController.image.tag | UCT-C Controller Docker image tag | 6.14.00-424867 |
uctcController.nameOverride | #This value will override the default resource's name generated by the chart's templates | uctc-cntlr |
uctcController.fullnameOverride | #The provided name will combine with the default resource's name | |
uctcController.podAnnotations | Annotations can be added based on the user requirements | ... |
uctcController.service.labels | Needed labels can be added here | application: "uctc" |
uctcController.service.type | Type of the service to be created | ClusterIP |
uctcController.fm_ip | IPv4 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_ipv6 | IPv6 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_list | IPv4/V6 addresses of the GigaVUE FM for HA, ip address separated by comma. | |
uctcController.uctc_svc_rest_port | Port at which UCTC Controller listens for FM request. If OpenShift Route is enabled set this value to 443 | 8443 |
uctcController.ext_load_balancer | External loadbalancer IP / DNS using which FM communicates with UCT-C Controller. Leave this field empty if OpenShift Route is enabled | |
uctcController.k8s_cluster_url | K8S cluster end-point (typically, master nodes with default port of 6443) | ... |
uctcController.uctc_cntlr_fm_ip_config | the user's preferred IP stack for communication between the UCT-C controller and a dual-stack FM | IPv4 |
uctcController.uctc_cntlr_fallback_config | If enabled as 'True', the uctc_cntlr_fm_ip_config will utilize the alternative IP stack if the user's preferred one is unavailable | True |
uctcController.resources.limits.cpu | Expressed in CPU units, it represents the maximum processing power that the UCT-C controller pod is allowed to use | 100m |
uctcController.resources.limits.memory | Expressed in mebibytes, it represents the maximum amount of RAM that the UCT-C controller pod is allowed to consume | 256Mi |
uctcController.resources.requests.cpu | Expressed in CPU units, it represents the minimum processing power that the UCT-C controller pod needs | 100m |
uctcController.resources.requests.memory | Expressed in mebibytes, it represents the minimum amount of RAM that the UCT-C controller pod needs | 256Mi |
uctcController.nodeSelector | Node labels can be specified to target specific nodes in the Kubernetes cluster where the UCT-C Controller pod should be scheduled | ... |
uctcController.tolerations | Tolerations can be specified to tolerate specific taints on nodes | ... |
uctcController.affinity | Affinity rules can be specified to place UCT-C Controller pod on nodes based on complex rules | ... |
uctcController.fm_fqdn | Specifies 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_list | Specifies 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
| Parameter | Description | Default Value |
|---|---|---|
uctcTap.image.repository | UCT-C Tap Docker image repository | gigamoneng/gigamon-gigavue-uctc-tap |
uctcTap.image.tag | UCT-C Tap Docker image tag | 6.14.00-424867 |
uctcTap.nameOverride | This value will override the default resource's name generated by the chart's templates | ... |
uctcTap.fullnameOverride | This value will combine with the default resource's name | ... |
uctcTap.podAnnotations | Annotations to be added to the pod | ... |
uctcTap.podSecurityContext | Security context to be added to the pod | ... |
uctcTap.uctc_tap_ip_config | User's preferred IP stack for communication between the UCTC controller and UCTC tap | IPv4 |
uctcTap.uctc_tap_fallback_config | If enabled as 'True', the uctc_tap_ip_config will utilize the alternative IP stack if the user's preferred one is unavailable | True |
uctcTap.resources.limits.cpu | Expressed in CPU units, it represents the maximum processing power that the UCT-C Tap pod is allowed to use | 1 |
uctcTap.resources.limits.memory | Expressed in mebibytes, it represents the maximum amount of RAM that the UCT-C Tap pod is allowed to consume | 1Gi |
uctcTap.resources.requests.cpu | Expressed in CPU units, it represents the minimum processing power that the UCT-C Tap pod needs | 1 |
uctcTap.resources.requests.memory | Expressed in mebibytes, it represents the minimum amount of RAM that the UCT-C Tap pod needs | 1Gi |
uctcTap.cri_socket_path | Key-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.nodeSelector | Node labels can be specified to target specific nodes in the Kubernetes cluster where the UCT-C Tap pod should be scheduled | ... |
uctcTap.tolerations | Tolerations can be specified to tolerate specific taints on nodes | ... |
uctcTap.affinity | Affinity 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 pods | 25 |
Common Configuration
| Parameter | Description | Default Value |
|---|---|---|
namespace | Namespace in which the UCT-C components are to be deployed | uctc |
imagePullSecrets | List of image pull secrets for private registries | gigamon (customize as needed) |
serviceAccount.name | Name of the service account if uctcTap.serviceAccount.create is set to true | gigamon |
serviceAccount.create | Specifies whether a service account should be created | false |
serviceAccount.annotations | Annotations to be added to the service account | ... |
serviceAccount.name | Name 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 false | gigamon |
imagePullSecrets | List of image pull secrets for private registries | gigamon (customize as needed) |
openShift.enabled | Set to 'true' if the cluster is an OpenShift cluster | false |
openShift.route | Defines configuration options for OpenShift Route integration. If using openshift route please use port 443 for uctc_svc_rest_port. | |
openShift.route.create | Set to 'true' to create a OpenShift Route. | false |
openShift.route.name | Specify the name of the route to be created | uct-route |
openShift.route.baseDomain | BaseDomain of the OpenShift cluster. It can be retrieved by running " oc get dns cluster -o=jsonpath='{.spec.baseDomain}' " | ... |
ingress.enabled | Specify 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.annotations | Annotations to be added to the ingress | ... |
ingress.annotations.kubernetes.io/ingress.class | Class name of the ingress controller to be used | nginx |
debugmode | Specified 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=debug | 0x0A000003 |
securityContextConstraints.create | If 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 solution | False |
securityContextConstraints.name | Name of the Security context constraints (SCC) to be created | gigamon |
validation | Setting this to true will deploy a pre-validator pod before and a post-validator pod after the deployment of the UCT-C solution | true |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartuctc is pinned at v1.12.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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