This yml files will setup a Drupal site using Kubernetes and Postgres
Clone the Drupal-PostgreSQL-Kubernetes
locally. In a terminal, run:
git clone https://github.com/Ahmad-Faqehi/Drupal-PostgreSQL-Kubernetes.git
Note: Minimum version 1.10 is required for both Kubernetes server and kubectl client.
Either run this commands listed in it:
kubectl apply -f local-volumes.yaml
kubectl apply -f drupal-deployment.yaml
kubectl apply -f postgres-configmap.yaml
kubectl apply -f postgres-storage.yaml
kubectl apply -f postgres-deployment.yaml
kubectl apply -f postgres-service.yaml
After deploying, we need to be sure that all pods are running. Check on the status via:
kubectl get all
Once all pod are running we need to know the IP address of our Drupal.
open your localhost ip with port 30080
localhost:30080
the login info for Postgres is
Database Name: postgresdb
Database Username: postgresadmin
Database Password: admin123
-
Here should enter the
local ip
for your system for Host field
-
If the data is correct, the installation process will be start
Ahmad Faqehi - iAhmad.info - [email protected]
Project Link: https://github.com/Ahmad-Faqehi/Drupal-PostgreSQL-Kubernetes