sap-tutorials / Tutorials

Tutorials on sap.com
https://developers.sap.com/tutorial-navigator.html
Creative Commons Attribution 4.0 International
732 stars 778 forks source link

Deploy a Node.js Application in the Kyma Runtime #23644

Open bstempien opened 3 months ago

bstempien commented 3 months ago

Tutorials: https://developers.sap.com/tutorials/deploy-nodejs-application-kyma.html

The "k8s-deployment-backend.yaml" Network Policy contains an error that will prevent access to the application and thus the Tutorial will Fail. The ingress policy namespaceSelector should be changed to:

ingress:
    - from:
        - podSelector:
            matchLabels:
              app: istio-ingressgateway
          namespaceSelector:
            matchLabels:
              kubernetes.io/metadata.name: istio-system

By default the istio-system Namespace does not have a label called name. But as of Kubernetes v1.21 there is a immutable label "kubernetes.io/metadata.name" added to every namespace. Thus the update to the Network Policy will allow the Tutorial to work out of the box.

jmmargo commented 3 months ago

Tia, can you please address the user's concerns here? Thank you.