This is provided as a starter/example setup. You can run kubernetes locally with an orchestration tool such as minikube and kubectl.
Starting minikube:
minikube start
Apply configs:
kubectl apply -f .kube/namespace.yaml
kubectl apply -f .kube/mysql-secret.yaml
kubectl apply -f .kube/php-secret.yaml
kubectl apply -f .kube/.
Minikube dashboard:
minikube dashboard --url
Create services:
minikube service nginx -n cakephp-docker
minikube service mysql -n cakephp-docker
Browse to the given nginx url:
minikube service list
MySQL:
mysql -u cakephp -h 192.168.49.2 -p --port 32089
Password is
cakephp
Docker build / push commands:
docker build . -t cnizzardini/cakephp-docker:latest
docker push cnizzardini/cakephp-docker:latest