Hi all-
I'm making some modifications to our jira K8s deployment in order to support Application Tunnels as we're moving to Confluence Cloud, and I was researching the best way to add an additional connector to server.xml as documented here: Application Tunnels: Configure required connections and upstream port
I had been reviewing the open issues on the DC Helm chart GitHub repo and came across this question from someone looking to add JNDI resources to server.xml. In the response, user "@bianchi2" who seems to work for Atlassian suggested the following:
hi zeddit server.xml isgenerated from a templateeach time the container starts, and indeed, it does not support additional resources in the context. What you can do though is to:
- copy existing server.xml from the running pod
- add a new jndi location
- create a configmap from this file
kubectl create configmap custom-server-xml --from-file=server.xml -n <namespace>
- use additionalFiles functionality in values, yaml for example:
additionalFiles: - name: custom-server-xml type: configMap key: server.xml mountPath: /opt/atlassian/jira/conf
Once done, run helm upgrade, and you should have server.xml mounted into conf.
However, in values.yaml for the Jira chart, there is also a variable called customServerXml which looks like this:
# -- Custom server.xml to be mounted into /opt/atlassian/jira/conf
#
customServerXml: |
# <?xml version='1.0' encoding='utf-8'?>
# <Server port="8005" shutdown="SHUTDOWN">
# </Server>
Can someone share with me what are the differences between these two options, and why someone might choose one over the other?
Thanks in advance!!!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.