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.
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
- 1 · Install the license
- 2 · Renew or update
- 3 · Without cluster access
- 4 · Remove the license
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.
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.
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.
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
- 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) - 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}') - 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) - 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) - 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) - 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) - License CRDs. The PlatformLicense and LicensePolicy types, registered by tdp-crds. The license chart refuses to install without them. (
platformlicenses.licensing.tecnisys.com.br) - TDP components. The other TDP charts require a valid license installed in the cluster: without it, the installation does not proceed.
The license block and the registry credentials, in the local copy of the variables file:
1TDP_LICENSE_NAMESPACE=tdp-system2TDP_LICENSE_PUBLIC_KEYS_FILE=license/keys.json3TDP_LICENSE_FILE=license/lease.json4TDP_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.
- License namespace (linha 1). Where the license chart and the applied license live. The default is tdp-system.
- Public keys (linha 2). The path of keys.json, relative to the variables file.
- License (linha 3). The path of lease.json. On renewal, this is the file you replace.
- Component namespaces (linha 4). The namespaces where the TDP components run, separated by commas. If empty, the TDP_NAMESPACE of the same file applies.
- Registry user (linha 5). The file is read by bash: put single quotes around every value that has $, such as a robot account name.
- 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.
Send the cluster ID to Tecnisys
The license is issued for a cluster, identified by the UID of the kube-system namespace.
kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'
It worked when
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.
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.
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.
./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.
kubectl get platformlicenses -A
It worked when
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:
helm get notes tdp-license -n <NAMESPACE>
Replace lease.json with the renewed one or update the chart, with the same command.
The license is close to expiring, or you are going to take the platform to a new release. In both cases the command is the same as the installation. On renewal, you ask Tecnisys for a new license for the same cluster and replace the file. On update, the license chart is upgraded by the same deploy.sh, which provides the public keys again on every run. A direct helm upgrade on the license chart does not replace deploy.sh.
Requested with the same cluster ID. A new cluster needs a new license. Tecnisys sends the renewed lease.json, and new keys when applicable.
The same way as the installation: the kit at the tag of your release and ./deploy.sh --license -v variables.env.local.
The renewed license, along the same path
- License files. On renewal, Tecnisys sends a new lease.json, and new keys when applicable. They replace the files pointed to by TDP_LICENSE_FILE and TDP_LICENSE_PUBLIC_KEYS_FILE. Default:
license/keys.json · license/lease.json. (TDP_LICENSE_PUBLIC_KEYS_FILE · TDP_LICENSE_FILE) - 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}') - 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) - 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) - 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) - 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) - License CRDs. The PlatformLicense and LicensePolicy types, registered by tdp-crds. The license chart refuses to install without them. (
platformlicenses.licensing.tecnisys.com.br) - TDP components. The other TDP charts require a valid license installed in the cluster: without it, the installation does not proceed.
Request the renewal with the same ID
The renewed lease.json, issued for this cluster.
kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'
The same ID appears in the notes of the installed release:
helm get notes tdp-license -n <NAMESPACE>
Replace the files
The new lease.json at the TDP_LICENSE_FILE path.
Overwrite the file pointed to by TDP_LICENSE_FILE in variables.env.local (by default, license/lease.json). If Tecnisys sends new keys, also overwrite the one at TDP_LICENSE_PUBLIC_KEYS_FILE.
cp <LOCAL_PATH>/lease.json license/lease.json
Run the same command and check
The renewed license in VALID.
./deploy.sh --license -v variables.env.local
kubectl get platformlicenses -A
It worked when
STATE column shows VALID.To update the chart, use the same commandOpcional
The license chart at the version of your release.
With the kit at the tag of the release you are updating to and the same variables.env.local, run ./deploy.sh --license -v variables.env.local and check with kubectl get platformlicenses -A. The order of the charts in an update is in Update via Helm.
Render the chart under Argo CD or with helm template.
The license chart is going to be rendered without cluster access: under Argo CD, or in a helm template or dry-run. Before installing, the chart checks that the license CRDs exist. Without cluster access, this check cannot see them and refuses the rendering. In these cases you turn the check off, and it becomes your responsibility to guarantee that tdp-crds is already installed.
Check on (skipCrdCheck: false), which is what applies in an installation with cluster access.
tdp-crds installed in the target cluster. Turning the check off does not exempt you from it.
The installation without the CRD check
- Rendering without cluster access. Argo CD and helm template generate the manifests without querying the cluster. The chart CRD check cannot see the cluster in this case and has to be turned off. Default:
check on. (skipCrdCheck: true) - 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) - 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) - 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) - License CRDs. With the check turned off, the chart no longer verifies that the CRDs exist: install tdp-crds first. (
platformlicenses.licensing.tecnisys.com.br) - TDP components. The other TDP charts require a valid license installed in the cluster: without it, the installation does not proceed.
1skipCrdCheck: true
Turns off the check of the license CRDs before installation. Use it under Argo CD and in helm template or dry-run. In an installation with cluster access, keep false.
- CRD check (linha 1). Turns off the check of the license CRDs before installation. Use it under Argo CD and in helm template or dry-run. In an installation with cluster access, keep false.
Check the license CRDs in the cluster
The two license types registered, since the chart will not check them.
kubectl get crd platformlicenses.licensing.tecnisys.com.br licensepolicies.licensing.tecnisys.com.br
It worked when
If one does not exist
Install tdp-crds first, as in Installation via Helm.
Render with the check turned off
The manifests generated without cluster access.
helm template tdp-license oci://registry.tecnisys.com.br/tdp/charts/tdp-license \
--version 3.0.3 \
--set skipCrdCheck=true
Under Argo CD, the same key goes in the Application values. Without --version, Helm uses the latest published version.
Uninstall the chart and delete what deploy.sh created outside Helm.
You are going to take the platform out of the cluster, or start the base over from scratch. The license goes out after the TDP components. helm uninstall removes the chart, but not the applied license: deploy.sh creates the PlatformLicense and LicensePolicy resources outside Helm, and they have to be deleted separately, before removing the CRDs.
The TDP components already removed.
PlatformLicense and LicensePolicy, created by deploy.sh outside Helm.
The complete order for the platform, with Argo CD, the operators, and the CRDs, is in Uninstallation.
The license that remains after helm uninstall
- 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) - 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}') - GitOps kit. The removal is done with helm and kubectl, without the kit. (
./deploy.sh --license -v variables.env.local) - 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) - License chart. Removed with helm uninstall, after the TDP components. Default:
namespace tdp-system. (TDP_LICENSE_NAMESPACE) - The license in the cluster. deploy.sh creates PlatformLicense and LicensePolicy outside Helm. The chart helm uninstall does not remove them. Delete them before removing the CRDs. (
kubectl delete platformlicenses,licensepolicies -A --all) - License CRDs. The PlatformLicense and LicensePolicy types, registered by tdp-crds. The license chart refuses to install without them. (
platformlicenses.licensing.tecnisys.com.br) - TDP components. The components are removed before the license.
Uninstall the license chart
The license release out of the cluster, after the components.
helm uninstall tdp-license -n <NAMESPACE>
Delete the applied license
PlatformLicense and LicensePolicy out of the cluster, before removing the CRDs.
kubectl delete platformlicenses,licensepolicies -A --all
It worked when
kubectl get platformlicenses,licensepolicies -A
The CRDs only go out after that, in the last step of Uninstallation.
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.
- 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.
- 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).
- 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.
- 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).
- 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.
- 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
| Parameter | Description | Chart default |
|---|---|---|
skipCrdCheckGeneral | Skips 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 cluster | false |
tdp-license-operator.enabledSubcharts | Installs the TDP license operator | true |
The operator values come inside the chart package, in charts/tdp-license-operator/values.yaml. To consult them, download and extract the package:
helm pull oci://registry.tecnisys.com.br/tdp/charts/tdp-license --version 3.0.3 --untar
Next steps
Installation
Installation via Helm
The platform base in order: CRDs, license, and operators. Then the components.