<p>im trying to make my app <strong>HA</strong>, so I created the following</p>
<ol>
<li>3 replica</li>
<li>PDB</li>
<li>liveness and readiness probes and</li>
<li>pod anti affinity</li>
</ol>
<p>is there anything else which I miss?</p>
<p>this is the antiaffinty config</p>
<pre><code>...
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: ten
topologyKey: kubernetes.io/hostname
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: tan
topologyKey: topology.kubernetes.io/zone
</code></pre>
<p>Is there anything I missing?</p>

Jenny M
<p>Highly Available.. I think these are the parameters for an application to be HA..</p>
<ol>
<li><p>Never launch your app directly from a Pod - it won’t survive a crash of a node. Even for single pod applications use <strong>ReplicaSet</strong> or <strong>Deployment</strong> objects, as they manage pods across whole cluster and maintain specified number of instances (even if it’s only one)</p>
</li>
<li><p>Use <strong>affinity configuration</strong> with custom rules to spread your pods based on your environments architecture. Workload are running in multiple instances spread across multiple nodes provides second level of resilience to the app</p>
</li>
<li><p>Define a <strong>livenessProbe</strong> for each container. Use proper method. Avoid ExecAction when your container can process HTTP requests. Remember to set proper initialDelaySeconds parameter to give your app some time to initialize (especially for ones based on JVM like Spring Boot - they are slow to start their HTTP endpoints)</p>
</li>
</ol>
<p>You seemingly following all these points, so you should be good.</p>
<ol start="4">
<li>However If feasible I would recommend to try to deploy the apps on <strong>multiple clusters</strong> OR say deploy across multiple data centres and run in active-active mode. It can help adding more more nines to your availability.</li>
</ol>
