- Apply Redis
kubectl apply -f kubernetes/redis/
- Waiting for redis all redis pod are started, then delete sentinel statefulset and apply again
kubectl delete statefulset sentinel
kubectl apply -f kubernetes/redis/
- Apply MySQL
kubectl apply -f kubernetes/mysql/
- Apply App (API)
kubectl apply -f kubernetes/app/
- Apply Ingress
kubectl apply -f kubernetes/ingress.yml
- Apply Nginx Controller
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.0/deploy/static/provider/cloud/deploy.yaml
MySQL
kubectl port-forward service/mysql 3306:3306
Redis
kubectl port-forward service/sentinel 5000:5000