Giter Club home page Giter Club logo

kubernetes-wordpress-php-fpm-nginx's Introduction

Kubernetes-wordpress-fpm-nginx

Kubernetes custom wordpress deployment with php-fpm & nginx ingress

Getting Started

These instructions will get you a copy of the project up and running on your cloud machine for development and testing purposes.

Prerequisites

Kubernetes cluster with nginx ingress installed

Kubernetes <= 0.10

Installing

A step by step series of examples that tell you how to get a setup wordpress env running

Build custom WordPress docker image using official php-fpm WordPress docker version

Official WordPress docker : https://hub.docker.com/_/wordpress

Exmple docker file

FROM wordpress:5-php7.2
COPY ./ /usr/src/wordpress/
EXPOSE 80
EXPOSE 9000

If WordPress taking Db connection values from envrionment variable

Edit & apply wordpress-configmap.yaml

kubectl apply -f wordpress-configmap.yaml

If want to implment fast-cgi with nginx ingress

Edit & apply fast-cgi-configmap.yaml & ingress.yaml (uncomment annotations)

kubectl apply -f fast-cgi-configmap.yaml

kubectl apply -f ingress.yaml

SSL/TLS certificate

If want to use SSL/TLS cetificate setup cert-manager and apply clusterissuer

Edit & apply cluster-issuer.yaml

kubectl apply -f cluster-issuer.yaml

WordPress service deployment

WordPress deployment will create One with Two container inside it (Nginx + Wordpress php-fpm)

Edit & apply wordpress-deployment.yaml & wordpress-service.yaml

kubectl apply -f wordpress-service.yaml

kubectl apply -f wordpress-deployment.yaml

Traffic flow

nginx ingress > nginx container inside POD > wordpress container (over localhost in same POD)

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.