Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Makefile
README.md
mysql-deploy.yaml
mysql-env-cm.yaml
mysql-env-secret.yaml
mysql-svc.yaml
puma-deploy.yaml
puma-svc.yaml
rails-env-cm.yaml
rails-env-secret.yaml
redis-deploy.yaml
redis-svc.yaml
sidekiq-deploy.yaml

README.md

k8s step1

Sample manifest using these API objects:

  • Deployment
  • Service
  • ConfigMap
  • Secret

Usage

# 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

Restrictions

  • puma deployment has Only 1 replicas to avoid conflicts rake db:setup from 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.