Name: example-guestbook
Owner: Deis
Description: A simple PHP app for Deis Workflow, the open source PaaS
Created: 2016-04-13 12:09:56.0
Updated: 2017-05-10 21:22:29.0
Pushed: 2017-05-10 21:56:42.0
Homepage: http://deis.com
Size: 11
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This example shows how to build a simple, multi-tier web application using Helm Classic and Deis Workflow.
The example consists of:
master
(for storage) with a replicated set of Redis slaves
The web frontend interacts with the Redis master
API via JavaScript calls.
This example requires a running Kubernetes cluster and you have installed Helm Classic and Deis Workflow.
1) We add the remote repo to Helm:
lmc up
lmc repo add demo-charts https://github.com/deis/demo-charts
lmc up
2) We install our back-end chart
lmc fetch demo-charts/redis-guestbook
lmc install redis-guestbook
1) Clone the repo:
t clone https://github.com/deis/example-guestbook.git
example-guestbook
2) Create guestbook App:
is create guestbook
3) Set env vars so the App knows where to connect to redis cluster:
is config:set GET_HOSTS_FROM=env REDIS_MASTER_SERVICE_HOST=redis-master.default REDIS_SLAVE_SERVICE_HOST=redis-slave.default PORT=80 -a guestbook
4) Push to remote git repo:
t push deis master
5) Open the App in your browser:
is open