Possible to connect Site VPN to Bluemix Spark Service? - containers

Background:
I have a DB cluster hosted in Softlayer
I utilize No Bluemix 'container' services
I utilize Spark and MessageHub Services in Bluemix
Question
- Please explain how I can securely connect the bluemix spark service to my DB cluster through a Site VPN connection?
- The UI for the Bluemix VPN indicates I have to specify a container or container group to connect - but how does that correspond to Spark/MessageHub Services? To my knowledge those are shared services, not containers or container groups.

VPNaaS on Bluemix currently supports services/applications running on Bluemix docker-containers.

You can try this out:-
If you have accessible JDBC connection to your database(since i am not sure which database you are accessing).
Depending on your database driver, you can enable ssl connection on the jdbc url.
jdbc://${env.hostname}:10000/default;ssl=true;sslTrustStore=./truststore.jks;trustStorePassword=mypassword;
Follow the guide from this post to import certificates if needed.
http://stackoverflow.duapp.com/questions/37109302/how-to-connect-to-remote-hive-running-on-biginsights-on-cloud-from-a-spark-as-a/37121741
Change the url with your database url(ex. postgres below)
df = sqlContext.load(source="jdbc",\
url="jdbc:postgresql://[publichost]:[port]/databasename",\
dbtable="[tablename]")
Thanks,
Charles.

Related

How to connect Spring Boot app to MySQL in Compute Engine VM Instance and export it with HTTPS?

I'm trying to deploy a backend rest api on GCP built using Spring Boot. I start VM instance and install MySQL and connect to Spring app there, exporting network to port 8080 and I can access globally. The problem is, it can only be accessed by HTTP, not HTTPS. I read some articles to use App Engine and Cloud SQL but I have no idea how to connect to MySQL that I previously installed in that VM instance. I'm a student so I need to find the cheapest way to do it, can anyone help?

Exposing Docker-MySQL container on Azure to be used as DBaaS

I want to make specifically a docker container that holds standard Docker Hub MySQL image.
Once this container is deployed using Azure Container services, how do I use it remotely?
I want to connect to this (container-hosted) mysql server remotely, so that my APIs can upload data to this database over internet.
Where do I find host,username, password for this hosted MySQL db?
Once this container is deployed using Azure Container services, how do
I use it remotely?
If you deploy the container to Azure Container Service, you can use a service with the LoadBalancer type to expose the port of the container to access outside.
Where do I find host,username, password for this hosted MySQL db?
You can use the environment variables to set the user and password. Except this, you can connect into the container, then go inside the MySQL and create the users manually.

What after connecting AWS database and MYSQL WorkBench?

I need proper explanation and steps to connect to an RDS database from my AWS Elastic BeanStalk Project. I have already created a RDS instance on AWS and successfully connected to it from MYSQL Workbench. After that, I have also connected it to my Elastic BeanStalk project. But still my java based website project cannot fetch data from it. Why ????
This use case is documented here:
https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases/Creating_rds_item_tracker
This tutorial steps you through creating a Java Spring app that is deployed to AWS Elastic Beanstalk and queries data from an RDS instance.
Please check if you can access your RDS instance from your elastic beanstalk environment when you set the RDS instance to public. If you can you have not configured your security groups to allow connections from your EB environments towards your rds instance.
Note: don't forget to set it to private again after you're done with testing.

AWS API REST connected to external MySQL DB

I made an API REST with Spring boot, connected to an existing MySQL database. This database is not hosted on my local.
The API works fine on my local but I want to deploy it on AWS.
Is it possible to use this remote MySQL database or do I need to use a new one hosted on AWS?
If it is possible, can you guys link any tutorial or documentation? I can't find anything related to this particular issue.
Thank you!
yes, AWS does not limit you to using only their RDS (Relational Database Services) offerings. Configuration of the DB will be the same (or similar if you want to use other instance than one used for your local development) as for your local environment.
Application hosted in aws can be connected to both cloud db and on-perm dB.only thing we need to check is security groups configured in ec2 along with other DB configurations.

Inter-Service communication between Kubernetes for mysql and tomcat

I have two services running on kubernetes using kubectl.
1. Tomcat
2. MYSQL
Scenario - Tomcat is external world facing. Hosted tomcat using node port. And MySQL service is backend and hence hosted it using cluster IP (default type).
Tomcat is not able to connect to MySQL. War file which I am using, need JDBC URL for connection.
I am able to connect to MySQL from my instance(master node). but tomcat service is not able to do.
We can do this by providing the service name directly.
Here, For MySQL service I can provide MySQL-middleware-service2(NAme of my MySQL service)