Skip to main content
Version 3.0

The TDP license installed,
renewed and removed by the chart.

Four common scenarios: installing the license, renewing it or updating the chart, rendering the chart without cluster access, and removing the license. Each one covers: what changes in the cluster, the file commented line by line, and a step-by-step with verification.

ChartVersion3.0.3TypeapplicationAppVersion1.0.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

Every TDP chart requires a valid TDP license installed in the cluster. The tdp-license chart is installed, together with the license that Tecnisys issues for your cluster, by the deploy.sh script of the public repository Tecnisys-OSS/tdp-k8s-gitops (the GitOps kit), also when the rest of the platform is installed with Helm. It comes right after tdp-crds and before any other TDP chart. What the cluster needs beforehand is in Prerequisites.

Your environment

If you fill in your environment details here, examples and commands on the page use what you entered. The license namespace is the TDP_LICENSE_NAMESPACE in variables.env.local (default tdp-system). The chart release is always named like the chart.

Scenarios​

Request the license for this cluster, prepare the kit, and install with deploy.sh.

The platform CRDs are already in the cluster and you are going to install the first TDP component. Before it, the license: Tecnisys issues it for a single cluster, from the ID you send, and emails two files, the public keys (keys.json) and the license (lease.json). You clone the GitOps kit at the tag of your release, store the two files in it, check a local copy of the variables file, and run a single command, which installs the chart and applies the license. Check that the license is in VALID before installing the other TDP charts.

From 3.0.2 on, TDP charts now require a valid TDP license installed in the cluster.
Before you start

tdp-crds installed (if it is not yet, deploy.sh --license installs it before the license), the registry.tecnisys.com.br credentials, and the two license files. On your workstation, git, kubectl, and helm.

Kit default

License namespace tdp-system (TDP_LICENSE_NAMESPACE) and the files in license/keys.json and license/lease.json. deploy.sh creates in that namespace the tdp-registry pull Secret with your credentials. In the component namespaces, the Secret must exist before helm install, or the installation stays in ImagePullBackOff.

Outside Git

The license/ directory and variables.env.local are in the kit .gitignore. Do not version the license files or the credentials.

The license files and what deploy.sh creates

clusternamespace <NAMESPACE>requestdeploy.shrequiredvalid licensekeys.json · lease.jsonTecnisys emailCluster IDkube-system UIDGitOps kitdeploy.sh --licenseSecret tdp-registryregistry credentialstdp-licensechart releasePlatformLicenseSTATE VALIDCRDstdp-crdsOther TDP charts ×3require a valid license
  1. License files. The public keys (keys.json) and the license (lease.json), issued for a single cluster. They stay in the kit license/ directory, outside Git. Default: license/keys.json · license/lease.json. (TDP_LICENSE_PUBLIC_KEYS_FILE · TDP_LICENSE_FILE)
  2. Cluster ID. The identifier you send to Tecnisys when requesting and renewing the license. A new cluster needs a new license. (kubectl get namespace kube-system -o jsonpath='{.metadata.uid}')
  3. GitOps kit. The public TDP repository, cloned at the tag of your release. deploy.sh reads variables.env.local, creates the pull Secret, installs the chart, and applies the license; if the CRDs are not in the cluster yet, it installs them first. (./deploy.sh --license -v variables.env.local)
  4. Pull Secret. Created by deploy.sh in the license namespace, with TECNISYS_HELM_REGISTRY_USER and TECNISYS_HELM_REGISTRY_TOKEN. In the component namespaces, you create it before each helm install. (TECNISYS_HELM_REGISTRY_USER · TECNISYS_HELM_REGISTRY_TOKEN)
  5. License chart. Installed and updated by deploy.sh, never by a direct helm upgrade. It refuses to install without the license CRDs in the cluster. Default: namespace tdp-system. (TDP_LICENSE_NAMESPACE)
  6. The license in the cluster. The license applied by deploy.sh. Check the state: the STATE column must show VALID before you install the other charts. (kubectl get platformlicenses -A)
  7. License CRDs. The PlatformLicense and LicensePolicy types, registered by tdp-crds. The license chart refuses to install without them. (platformlicenses.licensing.tecnisys.com.br)
  8. TDP components. The other TDP charts require a valid license installed in the cluster: without it, the installation does not proceed.
Where each file comes from and what deploy.sh creates in the license namespace. Click an element to see the detail.

The license block and the registry credentials, in the local copy of the variables file:

1TDP_LICENSE_NAMESPACE=tdp-system
2TDP_LICENSE_PUBLIC_KEYS_FILE=license/keys.json
3TDP_LICENSE_FILE=license/lease.json
4TDP_LICENSE_POLICY_NAMESPACES=
5TECNISYS_HELM_REGISTRY_USER='<REGISTRY_USERNAME>'
6TECNISYS_HELM_REGISTRY_TOKEN='<REGISTRY_CLI_SECRET>'

Where the license chart and the applied license live. The default is tdp-system.

  1. License namespace (linha 1). Where the license chart and the applied license live. The default is tdp-system.
  2. Public keys (linha 2). The path of keys.json, relative to the variables file.
  3. License (linha 3). The path of lease.json. On renewal, this is the file you replace.
  4. Component namespaces (linha 4). The namespaces where the TDP components run, separated by commas. If empty, the TDP_NAMESPACE of the same file applies.
  5. Registry user (linha 5). The file is read by bash: put single quotes around every value that has $, such as a robot account name.
  6. Registry token (linha 6). Together with the user, deploy.sh creates the tdp-registry Secret in the license namespace. Replace the placeholder with the token. It stays only in this file, outside Git.
variables.env.local (excerpt)

Send the cluster ID to Tecnisys

The license is issued for a cluster, identified by the UID of the kube-system namespace.

Terminal input
kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'

It worked when

The command returns the UID. Send it when requesting the license. Tecnisys replies with keys.json and lease.json.

Clone the kit at your release tag and store the files

The kit at the same TDP release, with keys.json and lease.json in the license/ directory.

Terminal input
git clone --branch v3.0.3 https://github.com/Tecnisys-OSS/tdp-k8s-gitops.git
cd tdp-k8s-gitops
mkdir -p license && cp <LOCAL_PATH>/keys.json <LOCAL_PATH>/lease.json license/

Prepare the local copy of the variables file

variables.env.local with the license block and the registry credentials checked.

Terminal input
cp variables.env variables.env.local

In the copy, check the lines of the excerpt above and replace the credential placeholders.

Install the license

The license chart installed and the license applied, in one go.

Terminal input
./deploy.sh --license -v variables.env.local

The command creates the tdp-registry Secret, installs the chart, and applies the license. If the CRDs are not in the cluster yet, it installs them first.

Check the license

The license in VALID before installing the other TDP charts.

Terminal input
kubectl get platformlicenses -A

It worked when

The STATE column shows VALID. From there, proceed with the other charts in the order of Installation via Helm.
If the license does not reach VALID

Look for the message in When something goes wrong. The cluster ID also appears in the release notes:

Terminal input
helm get notes tdp-license -n <NAMESPACE>

When something goes wrong​

Troubleshooting

Paste the error message or choose the symptom. The answer comes with the cause, what to do, and the command.

  1. license check failed when installing a TDP chart. Cause: The TDP license is missing or invalid in the cluster. What to do: Read the message, fix the license files, and run deploy.sh --license again (scenario 1). Repeat the chart installation with the license in VALID.
  2. deploy.sh --license ends without the license in VALID. Cause: The applied license did not become valid. What to do: Check that keys.json and lease.json are the ones Tecnisys sent for this cluster, with its ID, and run the command again. If the license has expired, request the renewal (scenario 2).
  3. Synchronization of a TDP Application fails because of the license. Cause: The same lack of a valid license, seen by Argo CD. What to do: Install or renew the license with deploy.sh --license. When the listing shows VALID, synchronize again.
  4. Missing required CRDs when installing the license. Cause: tdp-crds is not installed, and the license chart refuses to install without its CRDs. Under Argo CD or in a helm template, the check cannot see the cluster. What to do: Install the CRDs first (Installation via Helm, scenario 1); deploy.sh --license installs them when they are missing. Under Argo CD or in a helm template, set skipCrdCheck=true (scenario 3).
  5. deploy.sh fails at the registry login. Cause: variables.env.local is read by bash: a value with $ without single quotes, such as a robot account name, arrives truncated. What to do: Put single quotes around every value with $ in TECNISYS_HELM_REGISTRY_USER and TECNISYS_HELM_REGISTRY_TOKEN and run again.
  6. Another problem. Cause: Start with the license state and the events of its namespace. What to do: For other problems, contact Tecnisys support: suporte.tdp@tecnisys.com.br.

All parameters​

The license operator is a subchart: its values are nested under its name in the values file. The keys below stay at the root.

2 of 2 parameters

ParameterDescriptionChart default
skipCrdCheckGeneralSkips the check, before installation, that the CRD chart is installed. Set true under Argo CD and in helm template or dry-run, which cannot see the clusterfalse
tdp-license-operator.enabledSubchartsInstalls the TDP license operatortrue

The operator values come inside the chart package, in charts/tdp-license-operator/values.yaml. To consult them, download and extract the package:

Terminal input
helm pull oci://registry.tecnisys.com.br/tdp/charts/tdp-license --version 3.0.3 --untar

Next steps​