githubEdit

πŸš€Deploying Pods in Kubernetes Made Easy

Deploy Pods in Kubernetes Cluster

πŸ“¦ Deploy Pods in Kubernetes Cluster

This guide demonstrates how to deploy a basic HTTP server pod (httpd) inside a Kubernetes cluster using a simple YAML manifest.


βœ… Task Overview

  • Create a pod named pod-httpd using the httpd image with the latest tag.

  • Label the pod with app: httpd_app.

  • Name the container inside the pod as httpd-container.


πŸ§‘β€πŸ’» Steps to Deploy the Pod

1. Create a YAML manifest for the pod

Save the following content into a file named pod-httpd.yaml.

πŸ“Έ Sample YAML preview:

pod-httpd YAML

2. Apply the pod configuration

Run the following command to deploy your pod:

πŸ“Έ Applying the manifest:

kubectl apply

3. Verify the pod is running

Use this command to check the status of your pod:

πŸ“Έ Verifying pod status:

kubectl get pods

🏷️ Tags

#k8s #pods #devops #kubernetes #yaml #httpd

Last updated