To show how to override existing default main health check, and how to customize all healthchecks:
- Liveness Healthcheck
- Readiness Healthcheck.
- Startup Healthcheck
First you have to be in the directory with all the images of the microservice as tar archives , then run the following, | |
Don't forget to change the name of the microservice in all commands!: | |
#load tar archives into local podman registry | |
ll | awk '{print $9}' | xargs -i -t -p podman load -i {} | |
#verify that everything were loaded | |
podman images | grep eventstore | |
#Connect via podman to openshift registry. | |
OCP_REGISTRY=$(oc get route default-route -n openshift-image-registry --template='{{ .spec.host }}') ; podman login -u $(oc whoami) -p $(oc whoami -t) --tls-verify=false $OCP_REGISTRY |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: {{ include "try-lookup.fullname" . }}-config | |
data: | |
{{- range $key, $val := (lookup "v1" "ConfigMap" "check-something" "my-cm").data }} | |
{{ $key }}: {{ $val | quote }} | |
{{- end }} |