docs/static/v0.8/guides/tutorials/deploy-php-redis/index.html
In this tutorial, we will learn how to deploy a PHP Guestbook application with Redis using Meshery Playground. Meshery Playground is an interactive and collaborative live cluster environment that simplifies the deployment process and enhances user experience by providing visual tools for managing Kubernetes resources.
NOTE: If this is your first time working with Meshery Playground, consider starting with the Exploring Kubernetes Pods with Meshery Playground tutorial first.
Import the PHP and Redis manifest files into Meshery Playground.
Deploy these resources on the playground.
Expose and view the Frontend Service.
Learn how to import manifest files, visualize Kubernetes resources, create new resource components, and deploy the application using Meshery Playground.
To get started we will need some yaml files that will contain the configurations for the pods and services that will run on Meshery. You can download them to see what the look like.
These YAML files contain the Service definitions and Deployment configurations for the PHP app with Redis.
Log in to the Meshery Playground using your credentials. On successful login, you should be at the dashboard. Press the X on the Where do you want to start? popup to close it (if required).
Click Explore in the Cloud Native Playground tile to navigate to MeshMap
In the left sidebar, click on the upward arrow symbol(import icon) to import the designs into Meshery.
On doing so, a modal appears.In the modal that appears, enter a name for your design in the “Design File Name” field (e.g.redis-leader-deployment).
Now select Kubernetes Manifest from the “Design Type” dropdown menu.
Then choose URL Import for the upload method.
Now input the URL.
Then, click on Import
Now, follow the same steps (1-6) to import the rest of the files.
Under the “Designs” tab, you will see that we have successfully imported the manifest as designs, then you can drag and drop them in the canvas. This will “Merge” all the designs since it’s all just one application
Click Actions in the top right corner and click on Deploy.
The design will be validated to make sure there are no errors.
Choose the Kubernetes cluster you want to deploy to.
A Dry-Run will be triggered.
Finally your deployment and click Deploy to deploy the application to the cluster.
On successful deployment you will see the following modal asking yout o open you deployment in visualizer
kubectl set image deployment/<deployment-name> <container-name>=new-image:tag
Once deployment is successful user can click on Open in Operate, or click on notification on top right click on the deployment successful notification and click on Open in Operate, or directly click on the Operate tab beside Design on the design and visualize the design inside operate mode.
Click on the Layers option below to view all available filters. Now you can utilize this filter to visualize your design.
After selecting your filters, you should see a view displaying only your relevant resources.
Right click on a pod, to open the circular-content menu.
Select the logs option from circular-context menu, this will start the session for logs
Now you can use the in built terminal to view logs
To delete the resources, use the Undeploy option from the Design view.
Congratulations! You’ve successfully completed the lab on exploring Kubernetes Deployments using Meshery Playground. This hands-on experience has equipped you with practical knowledge on deploying, updating, and monitoring applications in a Kubernetes environment. Continue exploring more scenarios in the Meshery Playground to enhance your skills in container orchestration.