<p>I am going to deploy Keycloak on my K8S cluster and as a database I have chosen PostgreSQL.  </p>

<p>To adjust the business requirements, we have to add additional features to Keycloak, for example custom theme, etc. That means, for every changes on Keycloak we are going to trigger CI/CD pipeline. We use Drone for CI and ArgoCD for CD.   </p>

<p>In the pipeline, before it hits the CD part, we would like to ensure, that PostgreSQL is up and running.<br>
The question is, does it exist a tool for K8S, that we can validate, if particular services are up and running.  </p>

<p>"Up and running" != "Exists"</p>

<p>1: To check if a service exists, just do a <code>kubectl get service &lt;svc&gt;</code></p>

<p>2: To check if it has active endpoints do <code>kubectl get endpoints &lt;svc&gt;</code></p>

<p>3: You can also check if backing pods are in ready state.</p>

<p>2 &amp; 3 requires readiness probe to be properly configured on the pod/deployment</p>
