<p>I'm completely new to Kubernetes, I'm a bit lost of were to search. I would like to have blue-green deployment between with a web application solution. I've been told that the blue pods are destroyed when there is no user session anymore associated to the blue pods. Is this right? In some web pages I'm reading that there is a flip between one and the other.
Is it mandatory to use the session? In my case I've got a stateless application</p>

<p><strong>Blue Green Deployment</strong></p>

<p>Blue Green deployment is not a standard feature in Kubernetes. That means that there are many different 3rd party products for this, or patterns. And all products and pattern differ in <strong>how</strong> they do this.</p>

<p><strong>Example:</strong> <a href="https://kubernetes.io/blog/2018/04/30/zero-downtime-deployment-kubernetes-jenkins/" rel="nofollow noreferrer">Zero-downtime Deployment in Kubernetes with Jenkins</a> is using two <code>Deployment</code> with different <code>labels</code> and <em>update</em> the <code>Service</code> to point to the other service for <em>switching</em>. It is not the easiest strategy to get right.</p>

<p><strong>Stateless</strong></p>

<blockquote>
  <p>In my case I've got a stateless application</p>
</blockquote>

<p>This is great! With a <strong>stateless</strong> app, is is much easier to get the deployment strategy as you want.</p>

<p><strong>Default Deployment Strategy</strong></p>

<p>The default deployment strategy for <code>Deployment</code> (stateless workload) is <em>Rolling Deployment</em> and if that fits your needs, it is the easiest deployment strategy to use.</p>
