In this lab, you will explore Kubernetes, set up a local development environment, and create manifests for your application.
6 Points:
-
Learn About Kubernetes:
- Begin by studying the fundamentals of Kubernetes:
-
Install Kubernetes Tools:
- Install
kubectlandminikube, essential tools for managing Kubernetes.
- Install
-
Deploy Your Application:
- Deploy your application within the Minikube cluster using the
kubectl createcommand. Create aDeploymentresource for your app.
- Deploy your application within the Minikube cluster using the
-
Access Your Application:
- Make your application accessible from outside the Kubernetes virtual network. Achieve this by creating a
Serviceresource.
- Make your application accessible from outside the Kubernetes virtual network. Achieve this by creating a
-
Create a Kubernetes Folder:
- Establish a
k8sfolder within your repository. - Create a
README.mdreport within this folder and include the output of thekubectl get pods,svccommand.
- Establish a
-
Cleanup:
- Remove the
DeploymentandServiceresources that you created, maintaining a tidy Kubernetes environment.
- Remove the
-
Pull Request to the Forked Repository:
- Create a Pull Request (PR) to the main branch of the forked repository, allowing your teammates to review your work.
-
Pull Request in Your Repository:
- Construct a PR in your repository, linking the lab9 branch to the main branch.
4 Points:
-
Manifest Files for Your Application:
- As a more efficient and structured approach, employ configuration files to deploy your application.
- Create a
deployment.ymlmanifest file that describes your app's deployment, specifying at least 3 replicas.
-
Service Manifest:
- Develop a
service.ymlmanifest file for your application.
- Develop a
-
Manifest Files in
k8sFolder:- Store these manifest files in the
k8sfolder of your repository. - Additionally, provide the output of the
kubectl get pods,svccommand in theREADME.mdreport. - Include the output of the
minikube service --allcommand and the result from your browser, with a screenshot demonstrating that the IP matches the output ofminikube service --all.
- Store these manifest files in the
To Earn 2.5 Additional Points:
-
Manifests for Extra App:
- Create
deploymentandservicemanifests for an additional application.
- Create
-
Ingress Manifests:
- Construct Ingress manifests for your applications.
-
Application Availability Check:
- Utilize
curlor a similar tool to verify the availability of your applications. Include the output in the report.
- Utilize
Guidelines:
- Maintain a clear and well-structured
README.mddocument. - Ensure that all required components are included.
- Adhere to file and folder naming conventions.
- Create and participate in PRs to facilitate the peer review process.
- When creating the PR in your repository, make it from the lab9 branch to the main branch.
Note: Detailed documentation is crucial to ensure that your Kubernetes deployment is fully functional and accessible. Engage with the bonus tasks to further enhance your understanding and application deployment skills.