https://appdev.openshift.io/docs/spring-boot-runtime.html#mission-health-check-spring-boot
- Health Check Spring Boot Example
- Deploying application on OpenShift using Dekorate
- Deploying application on OpenShift using Helm
- Deploying application on Kubernetes using Helm
- Running Tests on OpenShift using Dekorate
- Running Tests on OpenShift using S2i from Source
- Running Tests on OpenShift using Helm
- Running Tests on Kubernetes with Helm
mvn clean verify -Popenshift -Ddekorate.deploy=true
First, make sure you have installed the Helm command line and connected/logged to a kubernetes cluster.
Then, you need to install the example by doing:
helm install healthcheck ./helm --set app.route.expose=true --set app.s2i.source.repo=https://github.com/snowdrop/health-check-example --set app.s2i.source.ref=<branch-to-use>
note: Replace <branch-to-use>
with one branch from https://github.com/snowdrop/health-check-example/branches/all
.
And to uninstall the chart, execute:
helm uninstall healthcheck
Requirements:
- Have installed the Helm command line
- Have connected/logged to a kubernetes cluster
You need to install the example by doing:
helm install healthcheck ./helm --set app.ingress.host=<your k8s domain>
And to uninstall the chart, execute:
helm uninstall healthcheck
./run_tests_with_dekorate.sh
./run_tests_with_s2i.sh
This script can take 2 parameters referring to the repository and the branch to use to source the images from.
./run_tests_with_s2i.sh "https://github.com/snowdrop/health-check-example" branch-to-test
./run_tests_with_helm.sh
This script can take 2 parameters referring to the repository and the branch to use to source the images from.
./run_tests_with_helm_in_ocp.sh "https://github.com/snowdrop/health-check-example" branch-to-test
First, you need to create the k8s namespace:
kubectl create namespace <the k8s namespace>
Then, run the tests by specifying the container registry and the kubernetes namespace:
./run_tests_with_helm_in_k8s.sh <your container registry: for example "quay.io/user"> <the k8s namespace>
For example:
./run_tests_with_helm_in_k8s.sh "quay.io/user" "myNamespace"