We'll start the exploration by deploying a stateful application without any mechanism to persist its state. That will give us a better insight into benefits behind of some of the Kubernetes concepts and resources we'll use in this chapter.
We already deployed Jenkins a few times. Since it is a stateful application, it is an excellent candidate to serve as a playground.
Let's take a look at a definition stored in the pv/jenkins-no-pv.yml file.
cat pv/jenkins-no-pv.yml
The YAML defines the jenkins namespace, an Ingress controller, and a service. We're already familiar with those types of resources so we'll skip explaining them and jump straight to the Deployment definition.
The output ...