Deploying sentry on AWS using fargate - amazon-ecs

I am trying to deploy sentry on aws-fargate using terraform. I am also launching Redis cluster and Postgres DB in RDS. I can launch the stack but as this is a new database i need to upgrade using exec command.(example command)
docker-compose exec sentry sentry upgrade
and then restart the sentry service to proceed. How can I achieve this using fargate.

Related

AWS Fargate EKS Sonarqube Pod with postgre RDS connection is not working

I have created EKS sonarqube fargate pod which is running but it is using its own database.
We have postgre RDS database. I have updated my sonarqube with postgre RDS environment details, but my POD is not working.
POD is showing error related to vm.max_map_count. (This error seems to be generic, I tried applying this command on host machine as well as inside pod both options are not working e.g vm.max_map_count=262144
)
Please let me know if anyone knows about this solution.
Thank you!.

Deploying Kong with Postgres db in Azure App service

I want to deploy Kong with DB mode on the Azure App Service using the docker-compose file.
I have the following docker-compose.yml file:
https://github.com/saurabhmasc/kong-compose/blob/main/docker-compose.yml
This file is running properly in Doker Desktop.
But when I tried to run it in Azure app services it was not running.
Please gives us suggestions.
Thanks
Saurabh

How to see/install pg_activity for the crunchy data postgres operator?

I have setup an Rancher (RKE) (kuberbetes) for my application.
and application using the postgres so i have setup Crunchydata postgres operator and create postgres cluster using that.
everything fine but now i want to see the pg_activity for my postgresql.
how i can see the activity of whole postgres ?
you use the monitoring tools in rancher to monitor the Postgres.
apart from that you can SSH inside the respective pod of the database and use the cli command and check the output.
In rancher, you can also use the client tool to connect with the rancher and run the cli command to check the pg_activity.
Client docker image : https://hub.docker.com/r/jbergknoff/postgresql-client/
you can also deploy the GUI docker client on rancher and use it
GUI postgress client : https://hub.docker.com/r/dpage/pgadmin4/
GUI Example : https://dataedo.com/kb/query/postgresql/list-database-sessions#:~:text=Using%20pgAdmin,all%20connected%20sessions%20(3).

run database migration through a k8s job

I want to run database migration via a job in k8s. The database is located in a mariadb pod in the same cluster, installed through bitnami/mariadb helm chart. So I think the mariadb can be seen/exposed as a service.
How can I let migration pod connect to the mariadb pod? It seems I cannot connect to the database well in the migration pod, even if I have configured the mariadb host in the migration pod image. When I run alembic upgrade head, it just hangs there, no any output.
Thanks!

Thorntail create datasource connection in postgres in openshift

I have a java app that use thorntail, postgres DB and i want to deploy this app to openshift via docker image.
I have tested successful build app with docker image and deploy to minishift and external postgres DB.
And now I want to use postgres in openshift instead of external postgres
But I dont know how to specify postgres connection for openshift in project-defaults.yml.
This is my project-defaults.yml: It does't work for postgres in openshift
thorntail:
datasources:
data-sources:
postgres_tenancy:
driver-name: mypostgres
connection-url: postgresql://postgresql:5432/$POSTGRESQL_DATABASE
user-name: $POSTGRESQL_USER
password: $POSTGRESQL_PASSWORD
jdbc-drivers:
mypostgres:
driver-class-name: org.postgresql.Driver
xa-datasource-name: org.postgresql.xa.PGXADataSource
driver-module-name: org.postgresql
Anybody has any idea?