Hello,
I would like to let you know about the fact that the validation of the task
“Deploy Lemp Stack on Kubernetes Cluster”
is incorrect.
Please find details below:
1)
Requirement:
“Create a deployment to deploy nginx
and phpfpm
, use any nginx
image for nginx container”
Actual setup:
nginx:latest and
wordpress:php7.2-fpm images were used
Validation message/error:
webdevops/php-nginx:alpine-3-php7 image is not used
Requirement:
Create a node port type service for nginx deployment which should be named as nginx-service
and the nodePort should be 30008
.
Actual setup:
nginx-service was created
Validation error/message:
Service ‘lemp-service’ doesn’t exist
Requirement:
For phpfpm container the database related environment variables should be MYSQL_DATABASE
, MYSQL_USER
, MYSQL_ROOT_PASSWORD
, MYSQL_PASSWORD
and MYSQL_HOST
, further these should fetch values from the secrets, you created. Configure other spec as per your choice.
Actual setup:
Was performed according to this requirement,
in wp-config.php was used getenv(‘VARIABLENAME’); to apply it inside config, please see exapmle
https://github.com/alexkonkin/k8s-wp/blob/master/files/wp-config.php
Validation message/error:
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’
Requirement:
The WordPress website should run properly on nginx service nodePort.
Actual setup:
Please see the confirmation screenshots that WordPress was up and running:
[Screenshot by Lightshot](https://WordPress screenshot 1)
[Screenshot by Lightshot](https://WordPress screenshot 2)
Please also find a reference to the GitHub that you could use to review the configuration
that I used to deploy the WordPress solution.
[GitHub - alexkonkin/k8s-wp](https://WordPress kubernetes deployment yml files)
Could you please help to resolve this issue?