Migrating from Google App Engine to Kubernetes cluster

194 views
Skip to first unread message

Vasco Silva

unread,
Jan 29, 2018, 9:03:09 AM1/29/18
to Google App Engine
Hi, 

I am migrating an application from Google App Engine - PHP , Standard Environment - to google kubernetes cluster. 

Following this info: https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build , I am using the PHP image: "FROM gcr.io/google-appengine/php

Now, my point is, how to "migrate" the rules in app.yaml? The docker image has the some behaviour thaat the standard google app engine? 

Should I to copy the app.yaml to any specific path, or re-write, or need I to specify the rules in ngingx config files? 

Example of some rules that i need to specify:


handlers:
- url: /listeners/moduleA/(.*)$
script: /backend/listeners/moduleA.php
secure: always

- url: /listeners/api/(.*)$
script: /backend/listeners/api.php
secure: always

- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico

- url: /assets
static_dir: assets

- url: /(.*\.(css))$
static_files: \1
upload: .*\.(css)$

   
Thank you,
VS

Jordan (Cloud Platform Support)

unread,
Jan 29, 2018, 3:40:59 PM1/29/18
to Google App Engine
app.yaml is specific to App Engine only and is not used in Kubernetes. Kubernetes uses its own yaml configuration files to create Services. It is therefore recommended to follow the documentation to Migrate your App Engine Flex app to Kubernetes

- Note that Google Groups is for general product discussions and not for technical support. If you require further Kubernetes technical support it is recommended to post your full detailed questions to Stack Overflow using the supported Cloud tags.  
Reply all
Reply to author
Forward
0 new messages