<-- Back

Error: failed to create secret secrets "namespace-operator-license" already exists

Introduction

When applying a Mendix on Kubernetes license, an error indicating that an operator license already exists is shown: 

kubectl -n ap-ns create secret generic mendix-operator-license --from-literal=licensekey=$license_key
error: failed to create secret secrets "mendix-operator-license" already exists

Environment/Prerequisites

  • Applications hosted in Mendix on Kubernetes

Instructions/Procedure

To resolve the issue, perform the following steps:

  1. Run the following command in the affected cluster (replace namespace with the name of the actual name of the namespace):

    kubectl delete secret mendix-operator-license -n <namespace>
  2. Redeploy the operator license.

Outcome

The license can be applied successfully. 

Internal information related

  • 218166

Additional information

Not applicable

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.