Skip to content

Feat/k8s check health state

Lucas Briese requested to merge feat/k8s-check-health-state into dev

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 in deployment.yaml with:
          - curl
          - 127.0.0.1:5001/actuator/health
  • 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

Merge request reports

Loading