Feat/k8s check health state
edit:
-
rollback_test.sh
- test is done with example files
-
deployment_test.sh
- test is done with original deployment on dev directly
- if you want to test it locally you need to modify some parts but only until this is merged
- in
deploy_test.sh
Iam testing a failed deploy by breaking the startupProbe but right now on dev its a different probe, therefore:- replace sed for negative test:
's|127.0.0.1:5001|127.0.0.1:50001|'
,'s|/127.0.0.1:50001|127.0.0.1:5001|'
- replace
startupProbe
indeployment.yaml
with:- curl - 127.0.0.1:5001/actuator/health
- replace sed for negative test:
- in
-
startupProbe in the cluster moved to a script
- check if http 200 OK which is UP, down would be 5xx
-
deploy moved to a script which can be used for local testing as well
- deploy will now write a history which contains user / branch / commit for every deployed element (deployments, configmap, ..., e.g. view it with dev rollout history -f deployment.yaml)
- rollback will also deploy configmaps and everything which is part of the deployment
- moved dev/prod to an own folder because operations with -f can be applied to a whole folder
Edited by Lucas Briese