Comments (3)
@Forbzy this is a failure on our documentation's part. Jira doesn't actually ship with the MySQL
driver and it needs to be supplied manually. We do allude to this in the docs but its easily missed, something that we'll look into addressing. As for getting you up and running, the way to present the driver to each of your Pod's is to first download the driver and add it to a sub-dir (e.g. drivers
) of your shared-home volume. You can use the shared-home-browser to do this. Once that is done define the additional library (driver) under additionalLibraries in your values.yaml
:
jira:
additionalLibraries:
- volumeName: shared-home
subDirectory: drivers
fileName: mysql-driver.jar
These additionalLibraries
will then be injected into <Jira-installation-directory>/lib
on Pod start.
from data-center-helm-charts.
Thanks @errcode1202 below is what I did with the values.yaml to help automate the steps you provided.
volumes:
sharedHome:
persistentVolumeClaim:
create: true
storageClassName: hostpath
mountPath: "/var/atlassian/application-data/shared-home"
nfsPermissionFixer:
enabled: true
mountPath: "/shared-home"
command: |
mkdir /shared-home/drivers
apk add dpkg
rm -rf /shared-home/drivers/mysql-driver.jar
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java_8.0.26-1debian10_all.deb
dpkg-deb -R mysql-connector-java_8.0.26-1debian10_all.deb /tmp/
cp /tmp/usr/share/java/mysql-connector-java-8.0.26.jar /shared-home/drivers/mysql-driver.jar
chown -R 2001:2001 /shared-home
jira:
additionalLibraries:
- volumeName: shared-home
subDirectory: drivers
fileName: mysql-driver.jar
from data-center-helm-charts.
Thanks @errcode1202 below is what I did with the values.yaml to help automate the steps you provided.
volumes: sharedHome: persistentVolumeClaim: create: true storageClassName: hostpath mountPath: "/var/atlassian/application-data/shared-home" nfsPermissionFixer: enabled: true mountPath: "/shared-home" command: | mkdir /shared-home/drivers apk add dpkg rm -rf /shared-home/drivers/mysql-driver.jar wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java_8.0.26-1debian10_all.deb dpkg-deb -R mysql-connector-java_8.0.26-1debian10_all.deb /tmp/ cp /tmp/usr/share/java/mysql-connector-java-8.0.26.jar /shared-home/drivers/mysql-driver.jar chown -R 2001:2001 /shared-home jira: additionalLibraries: - volumeName: shared-home subDirectory: drivers fileName: mysql-driver.jar
@Forbzy thats a great way of doing it too. As you're probably aware, one small implication of this approach is that these commands will be run every-time a new Pod joins the cluster. Because shared-home
is a persisted volume once the driver is in place there is no need to keep adding it. A conditional check around these commands might reduce some network and startup time.
from data-center-helm-charts.
Related Issues (20)
- [Suggestion] - Support for P1 plugins HOT 8
- [Suggestion] - Provide support for compass deployments HOT 3
- [Suggestion] - Add the fsGroupChangePolicy setting default on values.yaml file. HOT 2
- [Suggestion] - add support for annotations on Grafana dashboard ConfigMap HOT 2
- [Suggestion] - Add support for PodDisruptionBudget HOT 2
- [Suggestion] - Allow internal application links HOT 6
- [Suggestion] - Switching to clustered deployment on Confluence HOT 4
- [Suggestion] - Allow Confluence Synchrony small CPU requests HOT 2
- [Suggestion] - Create an option to Disable the Startup probe during Helm chart deployment. HOT 2
- [Suggestion] - Add variables for application tunnels to values.yaml HOT 1
- [Suggestion] - Make securityContext in fetch-jmx-exporter configurable HOT 3
- [Suggestion] - Add resource requests and limits for init-containers HOT 1
- [Breaking - Changes] - podAnnotations don't support Datadog labels anymore HOT 5
- [Suggestion] - Handling database and/or storage recovery HOT 1
- [Suggestion] - Flag to remove setup ingress in Confluence helm chart HOT 3
- [Suggestion] - monitoring.jmxExporterCustomConfig does not work if exposeJmxMetrics is set to true HOT 1
- [Suggestion] - Security Vulnerabilities on v8.5.2 and Helm Chart Doesn't Support v8.5.3 HOT 3
- [Suggestion] - Support Kubernetes StatefulSetStartOrdinal feature gate .spec.ordinals.start HOT 5
- [Suggestion] - Upgrade to Fluentbit HOT 2
- [Suggestion] - BlockList additions to Confluence JMX Exporter config HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-center-helm-charts.