Prepare web application solution for one-shot deployment to kubernetes cluster.
Use precompiled vovolkov/webapp:fix docker image.
- Web app should always be deployed from the latest image version.
- Web app should consists of no less then 2 instances after successfull redeployment.
- Web app should be redeployed keeping no less than 1 instance running during redeployment.
- Web app instances should be distributed as much as possible between different cluster nodes.
Web app should be able to get via kuber API how many instances of Webapp exist now based on count of pods with app:webapp label.- Web app should be available via URL: webapp.k8s.ask4ua.com and pathes (# - student number):
- /student# -> webapp: /student#
- /api/st# -> webapp:
/api/st# - /api/st#/wqesd -> webapp:
/api/st#/wqesd
Use precompiled vovolkov/db docker image.
- DB part of service should contain only 1 instance.
- DB part should be redeployed in recreate mode.
- Application should be secured enough using non-default image secrets.
As output should be provided 2 files:
- 1 yaml manifest with all kuberenetes entitites desribed in one file splitted by "---" yaml file separator,
- curl output log for calling webapp by URL.