Deploy Nginx and Phpfpm on Kubernetes

Hello guys,
@player001 @andrescaroc
the question for this task is a bit misleading.
the question specifies Docker images, that means I dont need to create my own Dockerfile.
but then the containers failed to start (Back-off restarting failed container) and the logs shows:
thor@jump_host /$ kubectl logs “nginx-phpfpm” -c “nginx-container”
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2020/08/29 14:44:58 [emerg] 1#1: “server” directive is not allowed here in /etc/nginx/nginx.conf:1
nginx: [emerg] “server” directive is not allowed here in /etc/nginx/nginx.conf:1

any ideas what am I missing here?

All good I found the fix. my nginx.conf was missing event and http sections.