Wednesday, December 25, 2024

Day 07: Pod Creation Declarative way


Two way to create pods in Kubernetes cluster

  • Imperative Way:
    • Run every command manually with kubectl utility.
    • kubectl run ngnx --image=nginx:latest
       
  • Declarative Way:
    • Define state/config of pod in YAML/JSON file.
    • Use that file to create pod with kubectl utility
    • Same file can be transferred and used to create same pod at any Kubernetes cluster.
    • File: day7/nginx.yaml


  • Create pod with redis image:
    • File: day7/redis.yaml

    • Create pod


No comments:

Post a Comment

Day 07: Pod Creation Declarative way

Two way to create pods in Kubernetes cluster Imperative Way: Run every command manually with kubectl utility. kubectl run ngnx --image=ngin...