Go+MySql: how easy is to migrate to GKE (Google Cloud Container Engine)?

5/11/2017

My project is currently hosted by an independent cloud provider.

I am using 2 Virtual Machines, with Linux:

  • one hosts a Go application
  • one hosts a MySql database

I would now like to move to the Google Cloud Platform.

Do you think does it make sense to move to Google Cointainer Engine (GKE), rather than to the Google Compute Engine (which would have the same virtual machine model (IaaS) I am using with the current provider)?

I have never used Kubernetes and Docker. How easy would it be to make the migration? Am I going to complicate my life uselessly?

How difficult is the configuration for my simple model?

-- Daniele B
docker
go
google-kubernetes-engine
kubernetes
mysql

1 Answer

5/11/2017

I have never used Kubernetes and Docker.

Moving to a platform that you have no experience with doesn't sound like a great idea. Instead, why not start by doing some tutorials about Docker and then Kubernetes?

After that, you might try Minikube (https://kubernetes.io/docs/getting-started-guides/minikube/) locally to start writing some manifests for the components (which sound like maybe a DaemonSet or single Pod with PersistentVolume for MySQL and a Deployment for the Go application).

Once you have the pieces working locally, then it would probably make more sense to think about migrating. You would have a much better understanding of what you are getting into and if it is something you would want to undertake.

-- Andy Shinn
Source: StackOverflow