Skip to content

Ahmad-Faqehi/Drupal-PostgreSQL-Kubernetes

Repository files navigation

Drupal-PostgreSQL-Kubernetes

LinkedIn Twitter Twitter

Deploy PostgreSQL and Drupal by using Kubernetes

Screen Shot

This yml files will setup a Drupal site using Kubernetes and Postgres

Steps

1. Clone the repo

Clone the Drupal-PostgreSQL-Kubernetes locally. In a terminal, run:

git clone https://github.com/Ahmad-Faqehi/Drupal-PostgreSQL-Kubernetes.git

2. Create Kubernetes cluster

Note: Minimum version 1.10 is required for both Kubernetes server and kubectl client.

3. Create the service and deployment

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

4. Access Drupal

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.

  • All running
    Screen Shot

open your localhost ip with port 30080
localhost:30080

the login info for Postgres is

Database Name: postgresdb
Database Username: postgresadmin
Database Password: admin123

Screenshots

  • Setup Page for drupal
    Screen Shot

  • Here should enter the local ip for your system for Host field
    Screen Shot

  • If the data is correct, the installation process will be start
    Screen Shot

  • Drupal Home Page
    Screen Shot

Contact Me

Ahmad Faqehi - iAhmad.info - [email protected]

Project Link: https://github.com/Ahmad-Faqehi/Drupal-PostgreSQL-Kubernetes

About

Deploy PostgreSQL and Drupal by using Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published