It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deploy Confluence on Kubernetes with Amazon RDS

Hi, I'm having some trouble with deploying Confluence on Kubernetes using an Amazon RDS. After setting up the cluster on Amazon EKS and installing Helm, I used the charts from this GitHub repository (link) to install Confluence. The only change that I made was to replace the service type from ClusterIP to LoadBalancer (otherwise I could not connect to Confluence). I also created a MySQL database on Amazon which I wanted to use for my Confluence installation.After I got an URL for my Confluence I proceeded with the setup. However, when I get to the database page, I cannot connect to the Amazon RDS that I created. This is the error I get:


Note that when deploying my database in amazon I chose the default VPC and enabled the public ip setting.

I think I might be missing something. Does anyone have any idea how to connect to the db ?Any help would be much appreciated. Thanks a lot !

3 answers

1 accepted

0 votes
Answer accepted

Hello Claudiu,

It looks a firewall issue but we can troubleshoot it. Can you confirm that you have opened/allow port 5432 in your security group for the application to connect PostgreSQL DB? You can try telnet to the database server on port 5432 and check that as well. 

telnet <db server> 5432



Hi Shankar,

Thanks for the reply. I am not quite sure to which security group you are referring. If you're asking whether I opened port 5432 for my Kubernetes security group, yes I did (both for all inbound and all outbound traffic). I still get the connection error. Is there a guide for setting Confluence inside a Kubernetes cluster with an external db ? I seem to have a hard time finding any good material about this setup online.

Thanks !

Hi Shankar,

Ok, so after playing around with some settings in the firewall, I indeed managed to connect to my Amazon RDS now (so thanks a lot for the tips). However, now I get the following issue (right after I click the Next button on the db setup window). This is what I get:


Do you have any idea what is going wrong here ? Could the issue come from the Confluence cluster setup (where it asks for a root directory ? I also was unsure what to fill in for that setting). I'm using the method for connecting via AWS secret. 

Again, thanks for all your help !

Hi Claudiu,

Glad that you are able to connect fine now. To fix the error you're getting, I suggest you check the permissions/ownership on the confluence home directory. If this is a fresh installation, I would suggest you do the following;

Stop Confluence, Delete all files under 


Make sure the user running Confluence has read/write permissions on the Confluence home directory.

The following links help you understand and fix the problem;



Hi Shankar,

Thanks again for the reply. I'm still quite unsure, how to set Confluence read/write permissions inside a Kubernetes cluster ? I just used Helm to install Confluence, but I am not sure how to set these permission. Could you maybe provide more details about how to do this ? (is it maybe related to service accounts inside the cluster)

This is what I used for installing Confluence in a Kubernetes cluster: link (you can see the setting of the Helm chart used in the values.yaml file)

Hi Ion,

I used the same repository for the Helm Chart and did not even change the service type but put an ingress and cert-manager in front. I‘m also trying to deploy to EKS and connect to an AWS RDS (Postgres 11). The database service is available, the tables get populated but finally I stumble across the same error as you. The log file states issues with stuck threads. Did. you finally get Confluece deployed (as the thread is solved) and if yes, which magic did you apply?




Any one got successful?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

4,118 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you