Kubernetes Pods & Deploy Your First App
Kubernetes Pods & Deploy Your First App
Kubernetes Pods & Deploy Your First App
TABLE OF CONTENTS
DeployToCloud
Follow
10
PLAY THIS ARTICLE
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 1/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
TABLE OF CONTENTS
0:00 / 3:55
📍 Introduction:
In this blog, you will learn about Kubernetes pods, which are the smallest
deployable units in Kubernetes. You will learn the differences between containers
and pods, how to install kubectl and Minikube, and how to create and write your
first Pod. Additionally, you will discover the advantages of using Pods in
Kubernetes.
🔹 Container vs Pod:
Containers are standalone executable packages of software that include
everything needed to run an application, including code, libraries, and system
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 2/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
tools. A Pod is the smallest deployable unit in Kubernetes, and it is a logical host
TABLE
for one OF CONTENTS
or more containers. A Pod can contain one or more containers, and those
containers share the same network namespace, and they can also share the same
storage volumes.
🔹 Minikube Installation:
Minikube is a tool that allows you to run a Kubernetes cluster on your local
machine. You can install Minikube by following the instructions on the Kubernetes
documentation. Here is an example of how to install Minikube on Ubuntu:
COPY
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 3/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
TABLE OF CONTENTS
$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-li
$ sudo install minikube-linux-amd64 /usr/local/bin/minikube
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 4/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
You can create the Pod using the kubectl apply command:
TABLE OF CONTENTS
COPY
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 5/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
They provide a logical host for one or more containers, which allows you to
TABLErelated
group OF CONTENTS
containers together and manage them as a single unit.
They share the same network namespace, which allows containers within a
Pod to communicate with each other using localhost .
They can share the same storage volumes, which allows containers within a
Pod to share data.
They can be easily scaled horizontally by creating multiple replicas of the same
Pod.
📍 Conclusion:
Kubernetes Pods provide a powerful abstraction for deploying and managing
containerized applications in a scalable, flexible, and resilient way. By using Pods,
you can simplify networking, share resources, ensure atomic scheduling, enable
co-located and sidecar containers, support blue-green deployment, and achieve
efficient scaling. With the knowledge and skills gained from this tutorial, you can
start building and running your own Kubernetes Pods and take your container
orchestration to the next level.
Join the community of learners and be a part of the conversation! Your feedback is valuable to us, so please
share your thoughts in the comments section. Help us make this blog even better for everyone. And if you
found this post helpful, spread the word! Share it with those who could benefit from the information. And
don't forget to follow along and subscribe to our newsletter for instant updates on our latest content. Thank
you for taking the time to read and engage with us!
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 6/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
Subscribe to my newsletter
TABLE OF CONTENTS
Read articles from DeployToCloud directly inside your inbox. Subscribe to the
newsletter, and don't miss out.
Enter your email address SUBSCRIBE
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 7/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
TABLE WRITTEN
OF CONTENTS
BY
Suman Prasad
Follow
MORE ARTICLES
Suman Prasad
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 8/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
Suman Prasad
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 9/10
4/26/23, 3:25 PM Kubernetes Pods & Deploy Your First App
TABLE OF CONTENTS
https://sumanprasad.hashnode.dev/kubernetes-pods-deploy-your-first-app 10/10