<p>Is it possible to define external path for example a other webserver as path for the web probes?
Or a TCP probe with a different IP?</p>

<pre><code>        livenessProbe:
          httpGet:
            path: external.de/test
            port: 8080
          initialDelaySeconds: 10
          periodSeconds: 10
</code></pre>

<p>I know thats not how you should use probes but I need it for testing.
Does someone know how to define probes that are not applied on the pods directly?</p>

djkobi97
<p>You can use following command along with your liveness probe </p>

<pre><code>livenessProbe:
  exec:
    command:
    - curl
    - external.de/test:8080
  initialDelaySeconds: 10
  periodSeconds: 105
</code></pre>

<p>In this case, if <code>curl external.de/test:8080</code>command returns with an exit code of <strong>0</strong> then it will be assumed healthy, otherwise any other exit code will be deemed unhealthy.</p>

<p>Also keep in mind, once probe will fail, the pod running this probe will be restarted, not the one that running <code>external.de/test:8080</code> web server</p>

<p>More details on how to use command within liveness probe described <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#define-a-liveness-command" rel="nofollow noreferrer">here</a></p>
