GithubHelp home page GithubHelp logo

bridgecrew-perf7 / wordpress-mysql-deployment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viveksahu26/wordpress-mysql-deployment

0.0 0.0 0.0 34 KB

Kubernetes Deployed WordPress and MySql Application.

wordpress-mysql-deployment's Introduction

wordpress-mysql-deployment

Let me Introduce to project. The project is based on web-application in which wordpress is used as frontend and mysql is used as a database. Basically WordPress is a free and open-source content management system written in PHP and paired with a MySQL database.

But, do you know behind the scene how they are hosted on server. Here comes use of DevOps technologies like Docker, Kubernetes, and many more. Technologies used in this projects are Docker and Kubernetes.

How to use this project. Step1: Clone it

git clone https://github.com/viveksahu26/wordpress-mysql-deployment.git

Step2: Start your Kubernetes Cluster. Step3: Install Helm in minikube:

   >> curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get-helm-3 > get_helm.sh
   >> chmod 700 get_helm.sh
   >> ./get_helm.sh

Install helm other than minikube.:-

  https://dev.to/viveksahu26/how-to-install-helm-version-above-3-in-linux-3bf1

Step4: Create a Directory inside minikube.
Go to virtualBox --> Click on minikube --> show --> minikube login: docker and Password: tcuser Now You have landed on your terminal Run these commands

   $ sudo su
   $mkdir /wpdata          // This will contain wordpress pages.


   $mkdir /mysqldata   // This will contain data of wordpress page.

Now, minimize VM/minikube.

Step5: Now get back to you localhost terminal. Go inside the folder where you clone this repo and open terminal here.

Step6:

 >> helm install chart/       // It will run your deployment automatically.

Step7: To check it's running or not.

   >> minikube ip         // Remember the Ip
   >> Kubectl get svc     //On column Port, Note down 5-digit no. and its your wordpress_port

Go to browser and search-->

 http://<minikube_ip>:<wordpress_port>

Step8: Choose language and Enter. Step9:

Database Name: wpdb
Username: vivek
Password: redhat
Database Host: <minikube_ip>

Step10: Now create your blog.

I think, it may be useful to you. Any problem just comment.

wordpress-mysql-deployment's People

Contributors

viveksahu26 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.