Warning
This feature is in the experimental stage and is not yet available in the main branch or official releases.
-
Connect
kubectl
to your cluster by setting the KUBECONFIG environment variable.export KUBECONFIG=<path-to-kubeconfig>
-
For clusters different from Kyma (for example, k3d), you must install the prerequisites.
kubectl apply -f deployments/prerequisites.yaml
Follow the steps below to run BTP Manager with UI:
- Ensure that the SAP BTP Operator module is deleted and verify that there are no existing BtpOperator custom resources (CRs) or deployments of both BTP Manager and the SAP BTP service operator.
kubectl get btpoperators -A kubectl get deployment -n kyma-system btp-manager-controller-manager kubectl get deployment -n kyma-system sap-btp-operator-controller-manager
- Clone the
btp-manager
repository and check out to thesm-integration
branch.git clone https://github.com/kyma-project/btp-manager.git git checkout sm-integration
- Set the IMG environment variable to the image of BTP Manager with UI.
export IMG=europe-docker.pkg.dev/kyma-project/dev/btp-manager:PR-845
- Run
deploy
makefile rule to deploy BTP Manager with UI.make deploy
- Check if BTP Manager deployment is running.
If you encounter the following error during Pod creation due to Warden's admission webhook:
kubectl get deployment -n kyma-system btp-manager-controller-manager
you must scale the BTP Manager deployment to 0 replicas, delete the webhook, and then scale the deployment back to 1 replica.Error creating: admission webhook "validation.webhook.warden.kyma-project.io" denied the request: Pod images europe-docker.pkg.dev/kyma-project/dev/btp-manager:PR-845 validation failed
kubectl scale deployment -n kyma-system btp-manager-controller-manager --replicas=0 kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io validation.webhook.warden.kyma-project.io kubectl scale deployment -n kyma-system btp-manager-controller-manager --replicas=1
- Apply BtpOperator CR to create the Secret with credentials to access Service Manager.
kubectl apply -n kyma-system -f examples/btp-operator.yaml
- Port-forward to BTP Manager deployment.
kubectl port-forward -n kyma-system deployment/btp-manager-controller-manager 8080:8080
- Access the UI by opening
localhost:8080
in your browser.
After testing the UI, you can delete the BtpOperator CR and BTP Manager deployment.
- Delete the BtpOperator CR.
kubectl delete -n kyma-system btpoperator btpoperator
- Delete BTP Manager deployment by running the
undeploy
makefile rule.make undeploy