Skip to content

Conversation

MinWooPark-dotcom
Copy link

@MinWooPark-dotcom MinWooPark-dotcom commented Jun 23, 2025

What does this PR do?

This PR adds a full solution set for Mock Exam 1 and includes the following:

  • Created: 03-CKA-MockExam-1-Solution.md under docs/15-Mock-Exams/
  • Solved all 12 questions with individual commits per question
  • Updated Helm chart, HPA, VPA, Gateway, PersistentVolume, etc.
  • Modified README.md to include links to the new solution file

Why?

  • To provide comprehensive, up-to-date solutions for Mock Exam 1
  • To improve CKA preparation by offering clear and reproducible examples
  • To ensure consistency between the README and solution files

Closes: #197

- Renamed solution for Mock Exam 1 to follow existing naming convention (CKA-MockExam-X-Solution.md)
- Moved solution content to new file: 03-CKA-MockExam-1-Solution.md
- No content changes made
…with shared volume)

- Created a multi-container pod manifest with 3 containers
- Used emptyDir for shared volume between containers
- Configured NODE_NAME via downward API (fieldRef)
- Added busybox containers to write and read from shared volume
…n node01)

- SSH into node01 using provided credentials
- Installed cri-docker from local .deb package
- Enabled cri-docker service to start on boot
- Added names of VerticalPodAutoscaler-related CRDs to /root/vpa-crds.txt
- Applied same instructional style as previous questions
… via ClusterIP service)

- Used imperative kubectl expose command
- Created ClusterIP service named messaging-service on port 6379
…ployment)

- Used kubectl create deployment command with image and replicas flag
- Deployment name: hr-web-app
- Image: kodekloud/webapp-color
- Replicas: 2
…orange pod)

- Exported the running orange pod manifest using kubectl get -o yaml
- Fixed typo in container command: changed 'sleeeep' to 'sleep'
- Recreated the pod using kubectl replace with --force flag
… hr-web-app)

- Created a NodePort service named hr-web-app-service
- Exposes hr-web-app pods on port 8080 via node port 30082
- Uses label selector app=hr-web-app to target the correct pods
…lume pv-analytics)

- Created a PersistentVolume named pv-analytics
- Storage: 100Mi, AccessMode: ReadWriteMany
- Backed by hostPath: /pv/data-analytics
…-deploy)

- Created HorizontalPodAutoscaler named webapp-hpa for kkapp-deploy deployment
- Target average CPU utilization: 50%
- Configured scaleDown behavior with stabilization window of 300 seconds
…ytics-deployment)

- Created VerticalPodAutoscaler named analytics-vpa for analytics-deployment
- Enabled Auto updateMode to allow eviction and resource adjustment
- Targets CPU and memory request optimization in default namespace
…ateway resource)

- Created Gateway named web-gateway in namespace nginx-gateway
- Uses GatewayClass nginx with an HTTP listener on port 80
- Listener name set to http for protocol HTTP
…sion 18.1.5)

- Updated helm repository to fetch latest chart changes
- Upgraded kk-mock1 release in kk-ns namespace to nginx chart version 18.1.5
@MinWooPark-dotcom MinWooPark-dotcom marked this pull request as ready for review June 23, 2025 09:57
- Fixed chart version to `18.1.15`
- Ensured correct namespace and release name usage
@MinWooPark-dotcom MinWooPark-dotcom changed the title docs: restructure mock exam 1 solution file for naming consistency docs: add and restructure mock exam 1 solution file for consistency and accuracy Jun 24, 2025
@MinWooPark-dotcom MinWooPark-dotcom changed the title docs: add and restructure mock exam 1 solution file for consistency and accuracy docs: update solutions and restructure mock exam 1 solution file for consistency and accuracy Jun 24, 2025
@MinWooPark-dotcom MinWooPark-dotcom changed the title docs: update solutions and restructure mock exam 1 solution file for consistency and accuracy docs: restructure mock exam files and update mock exam 1 solutions Jun 24, 2025
@MinWooPark-dotcom MinWooPark-dotcom changed the title docs: restructure mock exam files and update mock exam 1 solutions docs: Restructure mock exam files and update mock exam 1 solutions Jun 24, 2025
@MinWooPark-dotcom MinWooPark-dotcom changed the title docs: Restructure mock exam files and update mock exam 1 solutions docs: Restructure mock exam files and update solutions for mock exam 1 Jun 24, 2025
@MinWooPark-dotcom MinWooPark-dotcom force-pushed the docs/mockexam1-solutions branch from 7e17341 to 305d7f2 Compare June 26, 2025 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add official solutions for Mock Exam 1 (12 questions)
1 participant