Remove a DKP license
Remove a License
If your license information has changed, you may need to remove an existing license from DKP to add a new one. Only DKP administrators have the ability to remove licenses.
Original license information can still be obtained from D2iQ or the AWS License Manager console even after removing from DKP.
In the DKP UI, do the following:
Select Global in the workspace header drop-down.
In the sidebar menu, select Administration > Licensing.
Your existing licenses will be listed. Click Remove License on the license you would like to remove, and follow the prompts.
Manually Remove a License using kubectl
To remove a license from DKP using kubectl, you have to delete the Secret and License objects. In this example, the secret is named “my-license-secret”.
Validate that the secret exists in the
kommandernamespace:CODEkubectl describe secret -n kommander my-license-secretExpected output:
CODEName: my-license-secret Namespace: kommander Labels: kommanderType=license Annotations: <none> Type: Opaque Data ==== jwt: 455 bytesDelete the secret from the
kommandernamespace:CODEkubectl delete secret -n kommander my-license-secretExpected output:
CODEsecret "my-license-secret" deletedWe do the same with the
Licenseobject. Validate that it exists in thekommandernamespace:CODEkubectl describe license -n kommander my-licenseExpected output:
CODEName: my-license Namespace: kommander Labels: <none> Annotations: kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"kommander.mesosphere.io/v1beta1","kind":"License","metadata":{"annotations":{},"name":"my-license", "namespace":"kommand... API Version: kommander.mesosphere.io/v1beta1 Kind: License Metadata: Creation Timestamp: 2020-03-25T14:57:31Z Generate Name: license- Generation: 1 Resource Version: 17895 Self Link: /apis/kommander.mesosphere.io/v1beta1/namespaces/kommander/licenses/my-license UID: 35ee9254-4094-40eb-a2d8-4687c5d212d9 Spec: License Ref: Name: my-license-secret Status: Cluster Capacity: 500 Customer Id: mesosphere-developer End Date: 2020-10-02T14:00:09Z License Id: mesosphere-developer Start Date: 2019-10-02T14:00:09Z Valid: true Version: 1.0 Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal LicenseUpdateSuccess 7m7s (x2 over 7m7s) LicenseSignature License updated successfullyDelete the license from the
kommandernamespace:CODEkubectl delete license -n kommander my-licenseExpected output:
CODElicense.kommander.mesosphere.io "my-license" deleted
You have now successfully removed a license.