-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Suggestion] - [jira] Use special variable to right separate mount for logs and home #844
Comments
I am sorry but I have hard time understanding what the issue is. Can you please rephrase:
Btw, Our existing configuration uses subPath which makes it possible to use 2 volumeMounts in 1 volume. Again, can you please paraphrase your problem statement, e.g. "Logs in directory xxx not persisted" or "Can't create a pod because of...". |
What does it mean? There is configuration https://github.com/atlassian/data-center-helm-charts/blob/main/src/main/charts/jira/templates/_helpers.tpl#L153 path with values |
Yes, that's expected. The two volume mounts use one PVC, one volumeMount (tomcat logs) is using subpath. This way data is persisted in both locations and there's no need to declare an additional PVC just to persist Tomcat logs. |
I think you are mistaken in interpreting this feature, as you can see in the official documentation the example is given with several containers and not with one. To confirm my words, try to run this configuration on your cluster and go into the container and see the information about system mounts ( |
@w1ndblow it does not matter if it's one or several containers. Both directories are persisted:
Just to confirm, what you say is that your Jira home is not persisted? Can you write a file to Also, can you share more information about your k8s version, vendor/cloud and storage class? |
the provisioner of class is csi.vsphere.vmware.com, server version v1.26.5 there is private instances of k8s. |
@w1ndblow can you please answer the question I asked a few times already?
If you see different behavior with subPath, you may want to investigate it for your particular k8s provider and StorageClass. Like I said before this is the first report of subPath not working and Jira home not being persisted. Can you share output from mount command in your jira container? |
I figured out the problem, command
but there are two in fact
it is still possible to separate the log sections from the home one, this will be more explicit and simplify the configuration |
Suggestion
problem happen with config
Into the pod mounts other volume
when pvc is creating it binds to first local-home mount (/opt/atlassian/jira/logs) and logs get space whereas local-home directory /var/atlassian/application-data/jira is not, it can see
df
commandif my decision #842 is not satisfied with our plan, i suggest create other variable and pvc for that
Product
jira
Code of Conduct
The text was updated successfully, but these errors were encountered: