100-Days-Of-DevOps-Challenge-KodeKloud

Deploy Iron Gallery App on Kubernetes

There is an iron gallery app that the Nautilus DevOps team was developing. They have recently customized the app and are going to deploy the same on the Kubernetes cluster. Below you can find more details:

Steps

  1. Let’s create the namespace first:

     kubectl create ns iron-namespace-xfusion
     kubectl get ns
    

    We can see our namespace in the list

  2. Create k3s-iron-gallery.yaml file and copy-paste contents from this YAML file

  3. Let’s run the deployment

     kubectl apply -f k3s-iron-gallery.yaml
    

    This single yaml file wile create two deployments, and two services

  4. Verify results

     kubectl get ns
     kubectl get deployments.apps -n iron-namespace-xfusion
     kubectl get pods -n iron-namespace-xfusion
     kubectl get svc -n iron-namespace-xfusion
    

Good to Know?

Kubernetes Namespaces

Multi-Tier Applications

Application Architecture

Deployment Strategies