100-Days-Of-DevOps-Challenge-KodeKloud

Deploy Nginx Web Server on Kubernetes Cluster

Some of the Nautilus team developers are developing a static website and they want to deploy it on Kubernetes cluster. They want it to be highly available and scalable. Therefore, based on the requirements, the DevOps team has decided to create a deployment for it with multiple replicas. Below you can find more details about it:

Steps

  1. Create a k3s-deployment.yml using this YAML file
  2. Run the following command to create deployment and service:

     kubectl apply -f k3s-deployment.yml
    
  3. Verify results:

     kubectl get deployment.apps
     kubectl get pods
     kubectl get svc
    

Good to Know?

Kubernetes Services

Service Types

High Availability

NodePort Services