Kubernetes includes a variety of features that can simplify the process of administering robust applications. In this lab, you will have the opportunity to practice your application administration skills in Kubernetes by building a dev environment, retrieving logs, and running an administrative job. This will help you build familiarity with the ways in which you can administer Kubernetes applications.
Successfully complete this lab by achieving the following learning objectives:
- Create a Development Environment in the Cluster
Create a new Namespace called
Deploy the app, including the backing service, to the
You can find deployment descriptors for the frontend and backend in
/home/cloud_user. Note that you may have to change the external ports used by NodePort Services for the dev Services to avoid port conflicts on the host. You can use ports
30083for this purpose.
- Retrieve Container Logs
Retrieve the container logs for the frontend container in the
productionNamespace and save them to a file at
- Run the Admin Process
The frontend container image contains some code for an admin cleanup process. Use a Job called
node cleanup.jsusing the
linuxacademycontent/pirate-day:0.0.4image. Run the Job in the