Google cloud container engine pod creation with two containers failing

9/26/2017

I'm trying to set up a wordpress instance that's using google cloud sql. When i follow the instructions given here: https://cloud.google.com/sql/docs/mysql/connect-container-engine using the yaml that's being provided here: https://github.com/GoogleCloudPlatform/container-engine-samples/tree/master/cloudsql I just changed the port numbers as per instructions and added my own connection string to the yaml.

I get the following error when I try to create the deployment:

Error from server (BadRequest): a container name must be specified for pod wordpress-2460939176-g38lm, choose one of: [web cloudsql-proxy]

The pod somehow seems to have trouble understanding that it should two containers?

Any idea anybody?

-- Olaf D.
google-cloud-sql
kubectl
kubernetes

0 Answers