Skip to content

Ahmad-Faqehi/MySQL-and-PhpMyAdmin-on-Kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL-and-PhpMyAdmin-on-Kubernetes

LinkedIn Twitter Twitter

Deploy MySQL and PhpMyAdmin by using Kubernetes

Screen Shot

This yml files will setup a MySQL and PhpMyAdmin using Kubernetes

Steps

1. Clone the repo

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

2. Create namespace for this project

This project will be work in custome namespace, to create namespace run:

kubectl create namespace mysql-database

3. Create the deployments and services

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

4. Access The database throw PhpMyAdmin

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.

  • All running
    Screen Shot

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

Screenshots

  • Login Page of PhpMyAdmin
    Screen Shot

the credentials for login is

Username: ahmad
Password: password

The Home Page Screen Shot

Contact Me

Ahmad Faqehi - iAhmad.info - [email protected]

Project Link: https://github.com/Ahmad-Faqehi/MySQL-and-PhpMyAdmin-on-Kubernetes

About

Deployment MySQL and PhpMyAdmin using Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published