Skip to content

Instantly share code, notes, and snippets.

View zvigrinberg's full-sized avatar

Zvi Grinberg zvigrinberg

View GitHub Profile
@zvigrinberg
zvigrinberg / README.md
Last active October 5, 2025 11:28
Quarkus Health checks and how to override them.

Quarkus Health Checks

Goal

To show how to override existing default main health check, and how to customize all healthchecks:

  1. Liveness Healthcheck
  2. Readiness Healthcheck.
  3. Startup Healthcheck

Serving healthchecks on the Management Interface

@zvigrinberg
zvigrinberg / gist:f68c03e84fb8a7f0769e0b0c140f41fb
Last active March 7, 2022 14:24
How to enable mass loading of images into registry's repo.
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
@zvigrinberg
zvigrinberg / gist:558459b48d7b81a57d79a9461aedf6f5
Created February 16, 2022 13:17
helm - how to use lookup to inject values from k8 to template
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 }}