cpx-license-aggregator
by NetScaler
A Helm chart for CPX License Aggregator
About this chart
NetScaler CPX License Aggregator
NetScaler CPX license aggregator reserves bulk license capacity for given cluster from License server and license the NetScaler CPX deployed in a Kubernetes Cluster.
TL;DR;
helm repo add netscaler https://netscaler.github.io/netscaler-helm-charts/
1 Installing NetScaler CPX License Aggregator to serve Pooled Licenses
1.1 For Platinum Bandwidth Edition
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthPlatinumQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthPlatinumLowWatermark=<LOW WATERMARK-in-Mbps>
1.2 For Enterprise Bandwidth Edition
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthEnterpriseQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthEnterpriseLowWatermark=<LOW WATERMARK-in-Mbps>
1.3 For Standard Bandwidth Edition
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthStandardQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthStandardLowWatermark=<LOW WATERMARK-in-Mbps>
Installing NetScaler CPX License Aggregator to serve VCPU Licenses
2.1 For Platinum VCPU Edition
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.vcpuPlatinumQuantum=<QUANTUM>,licenseInfo.vcpuPlatinumLowWatermark=<LOW WATERMARK>
2.2 For Enterprise VCPU Edition
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.vcpuEnterpriseQuantum=<QUANTUM>,licenseInfo.vcpuEnterpriseLowWatermark=<LOW WATERMARK>
2.3 For Standard VCPU Edition
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.vcpuStandardQuantum=<QUANTUM>,licenseInfo.vcpuStandardLowWatermark=<LOW WATERMARK>
Note: In the above command, username represents the handler of license aggregator. In the ADM license server, the details of this instance of CPX License Aggregator would be associated with the provided username.
Above commands deploy CPX License Aggregator for a particular type of license. If multiple types of licenses need to be managed by CLA, then relevant arguments of those licenses should be specified in the helm command. For example, to deploy CLA for "Pooled Platinum Bandwidth Edition" and "vCPU Platinum Edition" licenses, below command should be fired.
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthPlatinumQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthPlatinumLowWatermark=<LOW WATERMARK-in-Mbps>,licenseInfo.vcpuPlatinumQuantum=<QUANTUM>,licenseInfo.vcpuPlatinumLowWatermark=LOW WATERMARK>
Introduction
This Helm chart deploys NetScaler CPX License Aggregator in the Kubernetes or in the Openshift cluster using Helm package manager.
Prerequisites
-
The Kubernetes version should be 1.16 and above if using Kubernetes environment.
-
The Openshift version 4.8 or later if using OpenShift platform.
-
The Helm version 3.x or later. You can follow instruction given here to install the same.
-
You determine the address (IP or FQDN) of the NetScaler ADM License Server having license for NetScaler CPX.
-
You need to provide password that will be used for the Redis DB in CLA. You can provide DB password using Kubernetes secret and following command can be used to create the secret:
kubectl create secret generic dbsecret --from-literal=password= -n
Installing the Chart
Add the NetScaler CPX License Aggregator helm chart repository using command:
helm repo add netscaler https://netscaler.github.io/netscaler-helm-charts/
To install the chart with the release name, my-release, use the following command:
1 Installing NetScaler CPX License Aggregator to serve Pooled Licenses
1.1 For Platinum Bandwidth Edition
helm install my-release netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthPlatinumQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthPlatinumLowWatermark=<LOW WATERMARK-in-Mbps>
1.2 For Enterprise Bandwidth Edition
helm install my-release netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthEnterpriseQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthEnterpriseLowWatermark=<LOW WATERMARK-in-Mbps>
1.3 For Standard Bandwidth Edition
helm install my-release netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthStandardQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthStandardLowWatermark=<LOW WATERMARK-in-Mbps>
Installing NetScaler CPX License Aggregator to serve VCPU Licenses
2.1 For Platinum VCPU Edition
helm install my-release netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.vcpuPlatinumQuantum=<QUANTUM>,licenseInfo.vcpuPlatinumLowWatermark=<LOW WATERMARK>
2.2 For Enterprise VCPU Edition
helm install my-release netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.vcpuEnterpriseQuantum=<QUANTUM>,licenseInfo.vcpuEnterpriseLowWatermark=<LOW WATERMARK>
2.3 For Standard VCPU Edition
helm install my-release netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.vcpuStandardQuantum=<QUANTUM>,licenseInfo.vcpuStandardLowWatermark=<LOW WATERMARK>
Note: In the above command, username represents the handler of license aggregator. In the ADM license server, the details of this instance of CPX License Aggregator would be associated with the provided username.
Above commands deploy CPX License Aggregator for a particular type of license. If multiple types of licenses need to be managed by CLA, then relevant arguments of those licenses should be specified in the helm command. For example, to deploy CLA for "Pooled Platinum Bandwidth Edition" and "vCPU Platinum Edition" licenses, below command should be fired.
helm install demo netscaler/cpx-license-aggregator --set licenseServer.address=<License-Server-IP-or-FQDN>,redis.secretName=<Kubernetes-Secret-for-DB-password>,licenseAggregator.username=<unique-ID-for-CLA>,licenseInfo.instanceQuantum=<QUANTUM>,licenseInfo.instanceLowWatermark=<LOW WATERMARK>,licenseInfo.bandwidthPlatinumQuantum=<QUANTUM-in-Mbps>,licenseInfo.bandwidthPlatinumLowWatermark=<LOW WATERMARK-in-Mbps>,licenseInfo.vcpuPlatinumQuantum=<QUANTUM>,licenseInfo.vcpuPlatinumLowWatermark=LOW WATERMARK>
By default the chart installs the recommended RBAC roles and role bindings.
The command deploys NetScaler CPX License Aggregator on Kubernetes cluster with the default configuration. The configuration section lists the mandatory and optional parameters that you can configure during installation.
Configuration
The following table lists the mandatory and optional parameters that you can configure during installation:
| Parameters | Mandatory or Optional | Default value | Description |
|---|---|---|---|
| licenseAggregator.imageRegistry | Mandatory | quay.io | The CLA image registry |
| licenseAggregator.imageRepository | Mandatory | citrix/cpx-license-aggregator | The CLA image repository |
| licenseAggregator.imageTag | Mandatory | 1.0.0 | The CLA image tag |
| licenseAggregator.pullPolicy | Mandatory | IfNotPresent | The CLA image pull policy. |
| licenseAggregator.service.type | Mandatory | NodePort | Type of service used to expose CLA. |
| licenseAggregator.service.nodePort | Optional | N/A | The port on the cluster node to be used to expose CLA service if the type of CLA service is NodePort. Make sure the parameter licenseAggregator.service.type has value NodePort for using this option. |
| licenseAggregator.username | Mandatory | N/A | Please provide the username/clustername that can uniquely identify this license aggregator service with the NetScaler ADM License server. CLA would register itself with .. with the NetScaler ADM. It helps NetScaler ADM in keeping track of various License Aggregator instances. |
| licenseAggregator.securityContext | Optional | N/A | Security context for license-aggregator container. |
| licenseAggregator.resources | Optional | N/A | Resouces restrictions for license-aggregator container. |
| licenseAggregator.loglevel | Optional | INFO | Log level of the CLA service. Default value: INFO. Possible values: TRACE, DEBUG, INFO, WARN, ERROR |
| licenseAggregator.jsonlog | Optional | FALSE | Logs to be generated in the JSON format. Default: False. Possible values: TRUE, FALSE |
| nslped.image | Mandatory | quay.io/citrix/nslped:1.0.0 | The nslped image. |
| nslped.imageRegistry | Mandatory | quay.io | The nslped image registry |
| nslped.imageRepository | Mandatory | citrix/nslped | The nslped image repository |
| nslped.imageTag | Mandatory | 1.0.0 | The nslped image tag |
| nslped.pullPolicy | Mandatory | IfNotPresent | The nslped image pull policy. |
| nslped.securityContext | Optional | N/A | Security context for nslped container. |
| nslped.resources | Optional | N/A | Resouces restrictions for nslped container. |
| redis.image | Mandatory | redis:7.0.4 | The redis image. |
| redis.pullPolicy | Mandatory | IfNotPresent | The redis image pull policy. |
| redis.secretName | Mandatory | N/A | Kubernetes secret name created for Redis DB password. |
| redis.securityContext | Optional | N/A | Security context for redis container. |
| redis.resources | Optional | N/A | Resouces restrictions for redis container. |
| sidecarCertsGenerator.imageRegistry | Mandatory | quay.io | The sidecarCertsGenerator image registry |
| sidecarCertsGenerator.imageRepository | Mandatory | citrix/cpx-sidecar-injector-certgen | The sidecarCertsGenerator image repository |
| sidecarCertsGenerator.imageTag | Mandatory | 1.2.0 | The sidecarCertsGenerator image tag |
| sidecarCertsGenerator.pullPolicy | Mandatory | IfNotPresent | The sidecarCertsGenerator image pull policy. |
| serviceAccount.annotations | Optional | N/A | Annotations to be used for serviceaccount that is being used by CLA. |
| licenseServer.address | Mandatory | N/A | IP or FQDN of License Server. |
| licenseServer.port | Mandatory | 27000 | Port to be used for making connection to License Server. |
| licenseInfo.instanceQuantum | Optional | 0 | Quantum of Instance licenses to be checked-out from license server. |
| licenseInfo.instanceLowWatermark | Optional | 0 | If available instance licenses fall below this watermark, check-out additional license-quantum. |
| licenseInfo.bandwidthPlatinumQuantum | Optional | 0 | Quantum of Platinum category bandwidth throughput to be checked out from license server in Mbps. |
| licenseInfo.bandwidthPlatinumLowWatermark | Optional | 0 | If available Platinum category |
Deploy cpx-license-aggregator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cpx-license-aggregator 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 chartcpx-license-aggregator is pinned at v1.1.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