Log Into a Private Package Registry Using Credentials from a Secret ​
Serverless allows you to consume private packages in your Functions. This tutorial shows how you can log into a private package registry by defining credentials in a Secret custom resource (CR).
Steps ​
Create a Secret ​
Create a Secret CR for your Node.js or Python Functions. You can also create one combined Secret CR for both runtimes.
Test the Package Registry Switch ​
Create a Function with dependencies from the external registry. Check if your Function was created and all conditions are set to True:
bash
kubectl get functions -n $NAMESPACEYou should get a result similar to the this example:
bash
NAME CONFIGURED BUILT RUNNING RUNTIME VERSION AGE
test-function True True True nodejs20 1 96sWARNING
If you want to create a cluster-wide Secret, you must create it in the kyma-system namespace and add the serverless.kyma-project.io/config: credentials label.