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