Deploy lemp Stack on kubernetes

@rahul456 @player001 @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?


kind: ConfigMap
apiVersion: v1
  name: nginx-config
  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_index index.php;
        fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
        fastcgi_param REQUEST_METHOD \$request_method;