<p>I was passing one of the sample tests for CKA and one question says this:</p>
<p>&quot;Configure a LivenessProbe which simply runs <code>true</code>&quot;</p>
<p>This is while creating simple nginx pod(s) in the general question, then they ask that as one of the items. What does that mean and how to do it?</p>

<p><code>...Configure a LivenessProbe which simply runs true...while creating simple nginx pod...</code></p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - image: nginx:alpine
    name: nginx
    ports:
    - containerPort: 80
    livenessProbe:
      exec:
        command: [&quot;true&quot;]
</code></pre>
<p><code>true</code> is a command that returns zero. In this case it means the probe simply return no error. Alternately, you can probe nginx with: <code>command: [&quot;ash&quot;,&quot;-c&quot;,&quot;nc -z localhost 80&quot;]</code>.</p>
