Persisting State through the emptyDir Volume Type
Analyze the state of an updated Jenkins Deployment and discuss emptyDir volume type.
Updating the Jenkins deployment definition
Let’s look at a slightly updated YAML definition of jenkins-empty-dir.yml.
We add a mount that references the jenkins-home volume. This time, the volume type emptyDir. We’ll discuss the new volume type soon. But before we dive into explanations, we’ll try to experience its effects.
We have applied the new definition and waited until the rollout finished.
Now we can open the “New Job” Jenkins screen and repeat the same process we followed before.
Please type test in the “item name” field, select “Pipeline” as the type, click the “OK” button, and finish by clicking the “Save” button.
Now we’ll terminate the container and see what ...