MySql in pivotal cloud foundry environment - mysql

Does MySql come out of the box installed in pivotal cloud foundry environment? I was told that the containers within cloud foundry are transient in nature. If so , how does it support MySQL DB installation?

Pivotal offers Cloud Foundry in a couple ways. The hosted service is called Pivotal Web Services and allows apps to bind to a MySQL service such as ClearDB -- check out the marketplace.
The on-premise offering of Pivotal Cloud Foundry provides a MySQL service as well.
MySQL itself doesn't run as an application on Cloud Foundry, it's offered as a service alongside Cloud Foundry. Cloud Foundry currently only runs stateless applications, but support for a cloud-native solution for persistent workloads is starting up, so in the future it would be possible to run MySQL as an "application" directly on Cloud Foundry.

Related

How to Authorise circle-ci with Google Cloud SQL instance

I have NodeJS applications which utilise the SQL instance from Google App Engine. I have created a continuous integration (CI) deployment environment with CircleCI and Google App Engine. The deployment works nice. Now, I want to execute my unit tests on CircleCi. But the problem is how do I connect Google Cloud SQL instance on CircleCI?
On the local system, I use Google Cloud SQL proxy OR SSL connection to establish a connection with MySQL. How do I connect to Google Cloud SQL instance from circle-ci using NodeJs MySQL package?

For REST API monitoring in Oracle Cloud Compute VM, do we need to install the Oracle Cloud Agent?

I need to monitor the Oracle Cloud Compute VM using REST API's or Java SDK. So for REST API monitoring do we need to do any set up in VM?
No, you don't need any set up inside the VM, but you do need the API users to be authorized in a IAM policy.
For example with a policy like this (for just reading the metrics):
Allow group <api_users> to read metrics in tenancy
Then you can use the APIs here.

webhosting on cloud Azure/Aws

Hi guys need your help for web hosting my website on cloud (Azure/Aws). I have a wordpress website with 100 users/day,mysql database max size 100GB. I am Planing to use Iaas but I am open to Pass also.
Azure offers several ways to host web sites: Azure App Service, Virtual Machines, Service Fabric, and Cloud Services.
Azure App Service is the best choice for most web apps. Deployment and management are integrated into the platform, sites can scale quickly to handle high traffic loads, and the built-in load balancing and traffic manager provide high availability.
There are 3 steps to migrating a WordPress website to Azure App Service Web Apps.
1. Copy WordPress files
2. Migrate the MySQL Database
3. Configure WordPress
The Azure App Service Migration site and the tool can be utilized to migrate sites from Windows and Linux web servers to Azure App Service. As part of the migration the tool will create Web Apps and databases on Azure if needs be, publish content and publish your database.
Reference: Azure App Service, Virtual Machines, Service Fabric, and Cloud Services comparison

Can I restrict access to a Google Cloud SQL instance to specific service account?

I have multiple environments in Google Compute Engine (dev, staging, and production), each with its own Google Cloud SQL instance. The instances connect via Cloud SQL Proxy and authenticate with a credential file that is tied to a service account. I want to have a separate service account for each environment, which would be restricted to accessing the SQL instance specific to that environment. Currently, it appears that any service account with role Cloud SQL Client can access any Cloud SQL instance within the same project.
I cannot find any way to restrict access on a Cloud SQL Instance to a specific service account. Is it possible, and if so, how? If not, is there a different way to achieve the goal of preventing a server in one environment from accessing a Cloud SQL instance in another environment?
NOTE: this configuration is possible with Google Cloud Storage; one can assign a specific service account to have various permissions on each bucket, so that the dev service account cannot accidentally access Production files.
Unfortunately, Cloud SQL currently does not support instance level IAM policies.
The only workaround is hosting the instances in different projects.
As of the August 2021 release of Google Cloud SQL:
You can use IAM Conditions to define and enforce conditional, attribute-based access control for Google Cloud resources, including Cloud SQL instances
See the documentation for IAM Conditions for information about how to restrict a user or service account to specific Cloud SQL instances.

Adding MYSQL to Cloud Foundry and using it as a service

I am new to cloud foundry service, and wondering if the community can help to answer my question.
I have a simple WordPress app pushed to Cloud Foundry cf push Wordpress which has backend MYSQL servers. I have been asked to add MYSQL as a service within Cloud Foundry, but currently this does not exist.
When i perform cf marketplace there is not an option for MYSQL.
Simply put how do i get MYSQL on Cloud Foundry for my app to use it as a service.
Thanks
Here are instructions how to deploy a MySQL bosh release to your environment and register a service broker for it so that it appears in cf marketplace: https://github.com/cloudfoundry/cf-mysql-release