Exercises
In this chapter, we have covered a lot of new aspects of the CD pipeline. To help you understand these concepts, we recommend that you complete the following exercises:
- Add a performance test that tests the
hello worldservice:- The
hello worldservice can be taken from the previous chapter. - Create a
performance-test.shscript that makes 100 calls and checks whether the average request-response time is less than 1 second. - You can use Cucumber or the
curlcommand for the script.
- The
- Create a Jenkins pipeline that builds the
hello worldweb service as a versioned Docker image and performs performance tests:- Create a
Docker build(andDocker push) stage that builds the Docker image with thehello worldservice and adds a timestamp as a version tag. - Use the Kubernetes deployment from the previous chapters to deploy the application.
- Add the
Deploy to stagingstage, which deploys the image to...
- Create a