Uninstall hybrid runtime

Uninstall Apigee hybrid

Use the following commands to uninstall the hybrid runtime:

  1. Uninstall the resources in your apigee namespace:
    helm uninstall -n APIGEE_NAMESPACE ENV_GROUP_RELEASE_NAME ENV_RELEASE_NAME $ORG_NAME ingress-manager telemetry redis datastore
    
    • ENV_GROUP_RELEASE_NAME is the name with which you previously installed the apigee-virtualhost chart. In hybrid v1.10, it is usually apigee-virtualhost-ENV_GROUP. In Hybrid v1.11 and newer it is usually ENV_GROUP.
    • ENV_RELEASE_NAME is the name with which you previously installed the apigee-env chart. In hybrid v1.10, it is usually apigee-env-ENV_NAME. In Hybrid v1.11 and newer it is usually ENV_NAME.
    • ORG_NAME is the name with which you previously installed the apigee-org chart. It is usually your organization name. If you have defined an ORG_NAME environment variable, you can use that variable in your command.
  2. Uninstall apigee-operator.
    helm uninstall -n APIGEE_NAMESPACE operator
  3. Delete the Apigee CRDs:
    kubectl delete -k  apigee-operator/etc/crds/default/

Remove cert-manager

To remove cert-manager, permanently remove the apigee-ca certificate and secret from the cert-manager namespace with the following steps:

  1. Delete the apigee-ca certificate.
      kubectl delete secret -n APIGEE_NAMESPACE apigee-ca
  2. The output should look similar to the following:

      certificate.cert-manager.io "apigee-ca" deleted
      
  3. Verify that the apigee-ca certificate was deleted by getting all certificates:
      kubectl get certificates -A
        
  4. The output should look similar to the following:

    NAMESPACE   NAME                              READY   SECRET                            AGE
    apigee      apigee-datastore-guardrails-tls   True    apigee-datastore-guardrails-tls   89m
        
  5. Delete the apigee-ca secret:
      kubectl -n cert-manager delete secret apigee-ca
        
  6. Verify that the secret was deleted:
      kubectl get secrets -n cert-manager
        
  7. The output should look similar to the following:

    NAME                      TYPE     DATA   AGE
    cert-manager-webhook-ca   Opaque   3      94m