-
Notifications
You must be signed in to change notification settings - Fork 823
Description
Hi,
I followed all steps of tutorial "Develop a Node.js Application in the SAP BTP Kyma Runtime" https://developers.sap.com/mission.cp-kyma-node-js.html
Finally I fail in step 8 of "Check Application Deployment state" (here: https://developers.sap.com/tutorials/deploy-nodejs-application-kyma.html):
The via step 7 deployed application into SAP BTP, Kyma runtime (my cluster: garden-kyma--a7afb4e-external) remains in red 0/1 ('0 Pods are running') status.
I kindly ask for your help.
Steps, I did:
Of course I executed all steps of the tutorial as thoroughly as possible, here the main once, that might help you to give me further advice:
Instead of (only) using my own developed node.js sample (by following tutorial "Create a Basic Node.js Application with Express Generator", https://developers.sap.com/tutorials/basic-nodejs-application-create.html) I took also the code sample you provided in https://github.com/SAP-samples/btp-kyma-runtime-multitenancy-tutorial/tree/main/Mission%20-%20Develop%20a%20Node.js%20Application%20in%20the%20SAP%20BTP%20Kyma%20Runtime
I get the same red 0/1 ('0 Pods are running') result when using the provided sample code.
The main steps I executed, (1.) #build, (2.) #push image to Docker Hub and (3.) #deploy app on Kyma Runtime
(1.) #build
- step 2: "Build Application as OCI Image" in https://developers.sap.com/tutorials/deploy-nodejs-application-kyma.html
executed command:
"pack build jenglander/multitenant-kyma-backend:v1 --platform linux/arm64 --builder paketobuildpacks/builder-jammy-full"
console output says: "Successfully built image jenglander/multitenant-kyma-backend:v1"
Here I tried to run the docker image somehow (tried: docker run --interactive --tty --init --publish 8080:8080 jenglander/multitenant-kyma-backend:v1), but there was no response when calling localhost:8080 in web browser.
=> could you pls describe, how I would test the image I build with pack?
(2.) #push image to Docker Hub
executed command:
"docker push jenglander/multitenant-kyma-backend:v1"
The image has been pushed successfully to https://hub.docker.com/repository/docker/jenglander/multitenant-kyma-backend/general
(3.) #deploy app on Kyma Runtime
executed command:
"kubectl -n multitenancy-ns apply -f k8s-deployment-backend.yaml"
console output lines:
apirule.gateway.kyma-project.io/kyma-multitenant-node-multitenancy unchanged
deployment.apps/kyma-multitenant-node-multitenancy created
service/kyma-multitenant-node-multitenancy configured
networkpolicy.networking.k8s.io/multitenancy configured
The opened Kyma dashboard shows that in namespace 'multitenancy-ns' > Deployments there is a new deployment with name kyma-multitenant-node-multitenancy and image jenglander/multitenant-kyma-backend:v1
But Pod column shows "red 0/1 ('0 Pods are running')"
I hope with this information you might help me?
Additional info, Worth to mention:
I'm able to build and run another example node.js app with packeto:
I opened https://paketo.io/docs/howto/nodejs/ and verify that I can build the Sample app there, i.e.
- git clone https://github.com/paketo-buildpacks/samples
- cd samples/nodejs/npm
- pack build my-app --buildpack paketo-buildpacks/nodejs --builder paketobuildpacks/builder-jammy-base
- docker run --interactive --tty --init --publish 8080:8080 my-app
- open http://localhost:8080 in web browser
All the steps worked, so I'm basically able to build/run node.js with pack.
Thank you very much for your help in advance.
Best Jens