Can i use cmctl in Azure AKS aka Azure CLI

Klinger, Florian 36 Reputation points
2023-04-01T10:35:49.7133333+00:00

Hello Everyone,

i have some Problems with the manual renewal from cert-manager (lets-encrypt) certificates in an azure aks cluster.

In this case i found tutorials where the user uses cmctl (cert-manager command line tool) to handle his certificates in aks

But i don´t can use this tool because the azure cli doesn´t have it installed. Is there a known way to install or use it in azure aks ?

If it´s not possible is there any other way to renew a certifiacte manually ?

many thx

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,456 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Klinger, Florian 36 Reputation points
    2023-04-01T11:23:44.0533333+00:00

    I found the Solution ...
    I must use the cli in Powershell with the command az instead of use Azure cli in Terminal. Then cmctl was available .

    1 person found this answer helpful.
    0 comments No comments

  2. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2023-04-02T01:22:20.75+00:00

    Hello, @Klinger, Florian !

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    I'm running into problems with manual renewal in AKS using cert-manager and Let's Encrypt. The tutorial I'm following uses cmctl (the cert-manager command line tool) to handle certificates in AKS but I can't use this because it's not installed. Is there a way I can use this with AKS?

    Solution (provided by @Klinger, Florian ):

    In this instance, I was able to use the CLI in PowerShell with the AZ command where cmctl was available instead of Azure CLI.

    Additional Information:

    For anyone else that wants more information in AKS regarding Let's Encrypt and cert-manager:

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.