wso2 / apk

Official Repository for APK distribution
Apache License 2.0
148 stars 89 forks source link

Installation issue in APK 1.1.0 #2385

Closed shammijayasinghe closed 1 month ago

shammijayasinghe commented 1 month ago

Description

Getting following exception when trying to install APK "helm install apk wso2apk/apk-helm --version 1.1.0"

Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: CustomResourceDefinition "apipolicies.dp.wso2.com" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "apk"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default"

helm version version.BuildInfo{Version:"v3.12.1", GitCommit:"f32a527a060157990e2aa86bf45010dfb3cc8b8d", GitTreeState:"clean", GoVersion:"go1.20.4"}

Initially experienced [1] and followed the steps before getting above issue.

[1] https://apk.docs.wso2.com/en/latest/about-apk/FAQs/#6-why-is-my-installation-failing-with-an-ensure-crds-are-installed-first-error

Steps to Reproduce

Follow [1] https://apk.docs.wso2.com/en/latest/about-apk/FAQs/#6-why-is-my-installation-failing-with-an-ensure-crds-are-installed-first-error

Affected Component

APIM

Version

APK 1.1.0

Environment Details (with versions)

Rancher Desktop helm version version.BuildInfo{Version:"v3.12.1", GitCommit:"f32a527a060157990e2aa86bf45010dfb3cc8b8d", GitTreeState:"clean", GoVersion:"go1.20.4"

Relevant Log Output

helm install apk wso2apk/apk-helm --version 1.1.0
Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: CustomResourceDefinition "apipolicies.dp.wso2.com" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "apk"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default"
shammijayasinghe@shammi ~ % helm version
version.BuildInfo{Version:"v3.12.1", GitCommit:"f32a527a060157990e2aa86bf45010dfb3cc8b8d", GitTreeState:"clean", GoVersion:"go1.20.4"}

Related Issues

No response

Suggested Labels

APK 1.1.0

shammijayasinghe commented 1 month ago

Got it working by resetting the kubernetes cluster in Rancher. Thanks @sanjeewa-malalgoda for the help

Screenshot 2024-05-29 at 5 38 45 PM
shammijayasinghe commented 1 month ago

After resetting the cluster in Rancher Desktop with keeping the images, i could overcome the issue and install APK

helm install apk wso2apk/apk-helm --version 1.1.0 NAME: apk LAST DEPLOYED: Wed May 29 17:36:45 2024 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: Welcome to the WSO2 API Platform for Kubernetes!

Congratulations. You've successfully deployed WSO2 APK using Helm, you'll need to monitor and manage the deployment to ensure everything is running smoothly.

For more detailed information, troubleshooting, and advanced configurations, we encourage you to explore the official WSO2 documentation.

This is just the beginning of your APK journey. Feel free to customize and tailor your deployment to match your organization's specific needs.

For any questions or assistance, don't hesitate to reach out to our discord channel.

Happy API management with WSO2 APK!