Deploy lemp Stack on kubernetes

@rahul456 @Tej-Singh-Rana @francilio

Really I did everything as instructed, but kodekloud website didn’t show up.

  1. database is imported

  2. Deployment is ok, but wp-config.php is missing and I have to create it using wp-config-sample.php

  3. No kodekloud website

  4. everything is ok!

How did you configure the configMap nginx-config?

@francilio

kind: ConfigMap
apiVersion: v1
metadata:
  name: nginx-config
data:
  nginx.conf: |
  events {
  }

  http {
    server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/html;
        index index.html index.htm index.php;
        server_name _;
      location / {
        rewrite .* /index.php;
      }

      location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
        fastcgi_param REQUEST_METHOD \$request_method;
      }
    }
  }