This yml files will setup a MySQL and PhpMyAdmin using Kubernetes
Clone the MySQL-and-PhpMyAdmin-on-Kubernetes
locally. In a terminal, run:
git clone https://github.com/Ahmad-Faqehi/MySQL-and-PhpMyAdmin-on-Kubernetes.git
This project will be work in custome namespace, to create namespace run:
kubectl create namespace mysql-database
Either run this commands listed in it:
kubectl apply -f mysql-secret.yaml -n mysql-database
kubectl apply -f mysqldb.yaml -n mysql-database
kubectl apply -f phpmyadmin.yaml -n mysql-database
After deploying, we need to be sure that pods are running. Check on the status via:
kubectl get all -n mysql-database
Once all pod are running we need to know the IP address of our phpmyadmin.
open your localhost ip with port 30592
http://localhost:30592
Notes: if you using minikube run this command to access the application:
minikube service phpmyadmin-service -n mysql-database
the credentials for login is
Username: ahmad
Password: password
Ahmad Faqehi - iAhmad.info - [email protected]
Project Link: https://github.com/Ahmad-Faqehi/MySQL-and-PhpMyAdmin-on-Kubernetes