Sample manifest using these API objects:
# setup all objects cat *.yaml | kubectl apply -f - # wait until the deployment is completed kubectl rollout status deploy demoapp-puma # open demoapp in browser minikube service demoapp-puma # cleanup all objects cat *.yaml | kubectl delete -f -
See also Makefile. There are shorthand tasks for the above operations.
make kubectl-apply make kubectl-rollout-status make minikube-service make kubectl-delete
pumadeployment has Only 1 replicas to avoid conflicts
rake db:setupfrom multiple puma containers from
./bin/setup-and-start-puma. To increase replica, refer to step2.
- Data of MySQL and Redis is volatile. To persistent this, refer to step3.
- Application URL will change each kubectl apply. To fix this, refer to step4.