Before getting started, complete the following prerequisites:
- Install Kubectl
- Install Git
It is good if you have fundamental about:
- Kubernetes
- Docker
- Git
git clone https://github.com/Frickson/Test-node.git
The following command will apply all the YAML files inside the config folder.
cd depl
kubectl apply -f /config
- Create Mariadb Pod
kubectl apply -f dbserver.yaml
- Create Phpmyadmin Pod
kubectl apply -f phpmyadmin
- Obtain external IP address. We can use the external IP to access Phpmyadmin pod from browser.
Figure 1: Example Kubernetes service YAML file configuration.
kubectl get service
Figure 2: List all services
- Setup Database
- Open Phpmyadmin on broswer
- Import database
- Configure upload size (Optional)
https://stackoverflow.com/questions/3958615/import-file-size-limit-in-phpmyadmin
The following command will apply all the YAML files inside the config folder.
cd ..
kubectl apply -f /depl
- Copy External IP and open in browser [browser-image]