docs/content/en/guides/tutorials/kubernetes/kubernetes-pods.md
In this tutorial, we'll learn the fundamentals of Pods, the smallest deployable units in the Kubernetes ecosystem. Using Meshery Playground, an interactive live cluster environment, we'll perform hands-on labs to gain practical experience in deploying, managing, and understanding some of the concepts related to Pods.
NOTE: This tutorial demonstrates stand alone pods, i.e. pods not managed through deployments.
Deploy and explore an NGINX pod in a Kubernetes cluster. Additionally, expose the pod through a service.
Learn how to create, manage, and explore Kubernetes Pods and Services within the context of a microservices architecture.
NOTE: Kanvas is still in beta.
The pod at this stage does not have a container, so we will add one. This is similar to defining the containers in the spec: section of a YAML file. For this hands-on we will make some basic and necessary configurations only.
The next step in this process is to validate the design, after which we can deploy it.
To do this, click Validate on the top.
This should show a pop-up with details such as the number of components, annotations and errors (if any).
Ensure there are no errors before deploying. To deploy, click the Deploy (1) tab in the pop-up modal and then click Deploy (2) again.
You should see a few alerts on the bottom right about the deployment.
To view the resources deployed we will use the Visualize section of the Kanvas. A view is created with necessary filters to show the relevant resources.
Click the filter icon again to close. This should show a filtered view with only your resources something similar to the screenshot below:
Select the Details tab and select the pod from the view to view details about the pod. The details tab shows the following:
Meshery Playground provides terminal capabilities to connect to the container(s) and stream logs. The following steps demonstrate this.
NOTE: As of this writing, Meshery Playground supports only NodePort at the moment.
In order to apply the updated design (which contains a service now), we must undeploy and deploy the design.
To delete the resources such as Pods, use the Undeploy option from the Design view.
To recreate, use the Deploy option.
Congratulations! You've successfully completed the lab on exploring Kubernetes Pods using Meshery Playground. This hands-on experience should have provided valuable insights into the deployment, management, and interaction with Pods in a Kubernetes environment. Continue exploring more scenarios in the Meshery Playground to enhance your skills.