In this presentation I explain using video examples how kubernetes works and how this can be used to host your Drupal 7 or 8 site. There are obviously also gotcha's and I'd like to warn you to not use this in production until you've verified it
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
1. Drupal 8 on Kubernetes using Google
Cloud
ship-shipping ship, shipping shipping ships
2. 2
Drupal 8 on Kubernetes using Google
Cloud
Nick Veenhof
A lot of credit goes to @tpryan to give all these awesome sessions regarding kubernetes.
Please thank him instead of me :)
11. 11
• Create an Apache Server
• Create a Mysql Server
• Create a filesystem server (NFS/…)
• Get starting schema on Mysql Server
• Get Git repo on Apache server and link sites/default/files to file server
• Get files on file server
Somewhat Default Process
28. 28
Services
A Kubernetes Service is an abstraction which defines a logical set of Pods and a
policy by which to access them - sometimes called a micro-service.
41. 41
Pods/Deployment
A pod (as in a pod of whales or pea pod) is a group of one or more containers (such as
Docker containers), the shared storage for those containers, and options about how to
run the containers.
A Deployment provides declarative updates for Pods and ReplicaSets (the next-
generation ReplicationController).
42. 42
Building on the shoulders of giants
https://wodby.com/
https://github.com/wodby/drupal-php/
https://github.com/wodby/drupal-nginx
44. 44
A Little Slower? Let’s take a look at
that code
https://github.com/nickveenhof/drupal-docker-with-volume/blob/master/gcloud_instructions/nickveenhofbe/
pods.yaml
51. 51
1. Servers are a commodity.
2. Managing services is a commodity
3. Do not make the mistake thinking you know better.
Caveat: For Drupal, the one massive pain holding us back from
going all in with Google Cloud is not having a managed distributed
file system like Amazon EFS.