cpx-license-aggregator

by NetScaler

Helm chartv1.1.0App 1.1.0Verified publisher

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:

ParametersMandatory or OptionalDefault valueDescription
licenseAggregator.imageRegistryMandatoryquay.ioThe CLA image registry
licenseAggregator.imageRepositoryMandatorycitrix/cpx-license-aggregatorThe CLA image repository
licenseAggregator.imageTagMandatory1.0.0The CLA image tag
licenseAggregator.pullPolicyMandatoryIfNotPresentThe CLA image pull policy.
licenseAggregator.service.typeMandatoryNodePortType of service used to expose CLA.
licenseAggregator.service.nodePortOptionalN/AThe 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.usernameMandatoryN/APlease 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.securityContextOptionalN/ASecurity context for license-aggregator container.
licenseAggregator.resourcesOptionalN/AResouces restrictions for license-aggregator container.
licenseAggregator.loglevelOptionalINFOLog level of the CLA service. Default value: INFO. Possible values: TRACE, DEBUG, INFO, WARN, ERROR
licenseAggregator.jsonlogOptionalFALSELogs to be generated in the JSON format. Default: False. Possible values: TRUE, FALSE
nslped.imageMandatoryquay.io/citrix/nslped:1.0.0The nslped image.
nslped.imageRegistryMandatoryquay.ioThe nslped image registry
nslped.imageRepositoryMandatorycitrix/nslpedThe nslped image repository
nslped.imageTagMandatory1.0.0The nslped image tag
nslped.pullPolicyMandatoryIfNotPresentThe nslped image pull policy.
nslped.securityContextOptionalN/ASecurity context for nslped container.
nslped.resourcesOptionalN/AResouces restrictions for nslped container.
redis.imageMandatoryredis:7.0.4The redis image.
redis.pullPolicyMandatoryIfNotPresentThe redis image pull policy.
redis.secretNameMandatoryN/AKubernetes secret name created for Redis DB password.
redis.securityContextOptionalN/ASecurity context for redis container.
redis.resourcesOptionalN/AResouces restrictions for redis container.
sidecarCertsGenerator.imageRegistryMandatoryquay.ioThe sidecarCertsGenerator image registry
sidecarCertsGenerator.imageRepositoryMandatorycitrix/cpx-sidecar-injector-certgenThe sidecarCertsGenerator image repository
sidecarCertsGenerator.imageTagMandatory1.2.0The sidecarCertsGenerator image tag
sidecarCertsGenerator.pullPolicyMandatoryIfNotPresentThe sidecarCertsGenerator image pull policy.
serviceAccount.annotationsOptionalN/AAnnotations to be used for serviceaccount that is being used by CLA.
licenseServer.addressMandatoryN/AIP or FQDN of License Server.
licenseServer.portMandatory27000Port to be used for making connection to License Server.
licenseInfo.instanceQuantumOptional0Quantum of Instance licenses to be checked-out from license server.
licenseInfo.instanceLowWatermarkOptional0If available instance licenses fall below this watermark, check-out additional license-quantum.
licenseInfo.bandwidthPlatinumQuantumOptional0Quantum of Platinum category bandwidth throughput to be checked out from license server in Mbps.
licenseInfo.bandwidthPlatinumLowWatermarkOptional0If 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcpx-license-aggregator 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