Deploy Lemp Stack on Kubernetes Cluster-

@rahul456 @Inderpreet @Tej-Singh-Rana what is wrong with this task
Capture









Hi @Sudhakara.Acharya

We are aware of this issue and working on to fix the same. It should be fixed soon and you will be assigned this task again.

now my task is marked as failed??

There is something completely screwed up with this task evaluation. It has also been marked as incorrect (failed) but all the errors given are wrong!!!

Error output is as follows:

Uh oh! Looks like the task was not completed successfully. But it’s Ok. You can try again next time this task is assigned to you.

Check
Complete
Incomplete

webdevops/php-nginx:alpine-3-php7 image is not used

Service ‘lemp-service’ doesn’t exist

Mysql database is hardcoded in ‘index.php’

Mysql user is hard coded in ‘index.php’

Mysql password is hard coded in ‘index.php’

Mysql HOST is hard coded in ‘index.php’

website is not up and accessible

You may check your work again to see what went wrong.
The environment expires in 5 minutes.
If you think you did your work correctly and is marked failed,
you may request for a review from your task dashboard.
Or alternatively please take outputs/screenshot of your work
and post in community.kodekloud.com.

You can also view your result in your dashboard under tasks.
You will be assigned your next task within the next few days.


  1. It says webdevops/php-nginx:alpine-3-php7 image is not used, but the task specifies that any nginx image and an image like wordpress:php7.2-fpm can be used

  2. It says that lemp-service doesn’t exist but the task specifies nginx-service

  3. It says that the credentials are hardcoded in the database but this is not correct.
    wp-config.php gets its credentials as follows:

<?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * wp-config.php file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ $dbname = $_ENV["MYSQL_DATABASE"]; $dbuser = $_ENV["MYSQL_USER"]; $dbpass = $_ENV["MYSQL_PASSWORD"]; $dbhost = $_ENV["MYSQL_HOST"]; // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', $dbname); /** MySQL database username */ define( 'DB_USER', $dbuser); /** MySQL database password */ define( 'DB_PASSWORD', $dbpass); /** MySQL hostname */ define( 'DB_HOST', $dbhost); <?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ $dbname = $_ENV["MYSQL_DATABASE"]; $dbuser = $_ENV["MYSQL_USER"]; $dbpass = $_ENV["MYSQL_PASSWORD"]; $dbhost = $_ENV["MYSQL_HOST"]; // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', $dbname); /** MySQL database username */ define( 'DB_USER', $dbuser); /** MySQL database password */ define( 'DB_PASSWORD', $dbpass); /** MySQL hostname */ define( 'DB_HOST', $dbhost); .... 4. It says the websit is not up and accessible, but it was.

Faced the same issue. Any updates here?

Facing the same issue . please advise asap.