Day 33 Task: Working with Namespaces and Services in Kubernetes

Day 33 Task: Working with Namespaces and Services in Kubernetes

Congrats???? on updating your Deployment yesterday????

What are Namespaces and Services in k8s

In Kubernetes, Namespaces are used to create isolated environments for resources. Each Namespace is like a separate cluster within the same physical cluster. Services are used to expose your Pods and Deployments to the network. Read more about Namespace Here

Today's task:

Task 1:

  • Create a Namespace for your Deployment
  • Use the command kubectl create namespace <namespace-name> to create a Namespace
  • Update the deployment.yml file to include the Namespace
  • Apply the updated deployment using the command:

kubectl apply -f deployment.yml -n <namespace-name>

  • Verify that the Namespace has been created by checking the status of the Namespaces in your cluster.

Task 2:

  • Read about Services, Load Balancing, and Networking in Kubernetes. Refer official documentation of kubernetes Link

Need help with Namespaces? Check out this video for assistance.

Keep growing your Kubernetes knowledge????

Happy Learning! :)

Utsav Bayaskar

Sr Analyst / Software Engineer at Capgemini

7 个月

Happy Learning!!!

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了