snippetdockerMinor
How do I get Openshift to let Tomcat retain it's hosted site's changes
Viewed 0 times
tomcathostedopenshiftgetletsitehowretainchanges
Problem
I have a pod in Redhat Openshift running Tomcat and inside Tomcat I have Ozone Widget Framework, my site hosted in Tomcat. I have executed the
But after making changes within OWF, when I take down the cluster and bring it back up my pod lives on, but my OWF instance is reverted back to it's default state.
How do I get Openshift to let Tomcat retain OWF's state?
oc command to use my existing configuration so that my pod won't disappear and lose my session and data. I ran oc cluster up --host-data-dir=/path_to_data/openshiftdata --use-existing-configBut after making changes within OWF, when I take down the cluster and bring it back up my pod lives on, but my OWF instance is reverted back to it's default state.
How do I get Openshift to let Tomcat retain OWF's state?
Solution
You need to use a Persitent Volume.
Your
Your
/path_to_data/openshiftdata is probably on a disk that belongs to the pod and is being destroyed each time.Context
StackExchange DevOps Q#3668, answer score: 1
Revisions (0)
No revisions yet.