- Write a Dockerfile for the java application and expose port 8080
- In the dockerfile, the jar package name of the java application can be passed in during build
- Write a shell script for running java applications, which can set jvm related parameters
- Use the shell script of the second step in the docker file In summary, generate a complete dockerfile and shell script
- Create an executable and accessible k8s deployment manifest file for this docker image
- Please add namespace tag and enter it as parameter along with application name and image name, here please use simple implementation
- Add resource quotas to the deployment
- Adjust deployment manifest with production and security best practices
- please write a Jenkinsfile for the complete CI/CD pipeline for the above java application, including deployment to k8s cluster, use gradle to build java applications
- please adjust the Jenkinsfile ,in the final stage, apply deployment and service files to the k8s cluster and login cluster
- add a stage to notify team through slack channel about the build status