Modify Serverless App
1. Modify code
Modify the function computeReward()
section in bank-knative-service/index.js
file. Modify the code so that it returns different points rewarded based on a category.
2. Build and push container image
You can now build and push the container image with the updated code.
3. Modify deployment file
Modify the deployment file in bank-knative-service/deployment.yaml
.
Make sure the image name is the one you built in the previous step.
4. Deploy to OpenShift
You can now deploy the serverless app to openshift using oc apply
Verify its status. READY should be True
5. Test using the simulator again
Last updated
Was this helpful?