Deploy a Dockerized App to Kubernetes

In the "Code Editor" tab, open the Dockerfile and deployment.yaml files.

Your task: Create a Dockerfile for an NGINX web server serving a custom index.html, and a Kubernetes Deployment with 3 replicas using that image, plus a LoadBalancer Service to expose it on port 80.

GitOps Repository

  • 📁 /root/learn-kubernetes-docker
    • 📄 Dockerfile
    • 📄 index.html
    • 📄 deployment.yaml
    • 📄 service.yaml

Code Editor

Terminal