Rails demo app for Kubernetes.
The easiest way to get and play with Kubernetes on your developer workstation is using minikube.
Alternatively, sign up for and used Google Cloud Platform and spin up a Google Container Engine cluster.
helm init
Create the tweeter
namespace
kubectl create namespace tweeter
kubectl config set-context $(kubectl config current-context) --namespace tweeter
Using Helm
helm install --namespace tweeter --name tweeter-mongodb stable/mongodb
Using Helm
helm install --namespace tweeter --name tweeter-redis \
--set redisPassword=secretpassword stable/redis
Verify that the services are running
kubectl get services -w
kubectl create -f tweeter-secrets.yaml
kubectl create -f tweeter.yaml
Wait for the pods to be Running
kubectl get pods -w
kubectl get services
Take note of the tweeter
port, then visit $(minikube ip)
:port.