You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Add a step to run tests with coverage. The pipeline should fail if coverage is below 80%
258
270
4. Add a step to build the Docker image if tests pass. If we do a release, tag the image appropriately (with its version and the tag 'latest') and push it to GitHub registry
259
271
260
272
261
-
## Exercise 4: Deploy on a K8s "production" Cluster
273
+
## 3.4 Deploy on a K8s "production" Cluster
262
274
263
275
1. Set up a Kubernetes cluster (e.g., using Minikube or a cloud provider)
264
276
2. Deploy the application using the Helm chart
@@ -273,35 +285,7 @@ kubectl get hpa -n default -w
273
285
```
274
286
7. Note how much time it takes for the pods to scale up and down based on the load
275
287
276
-
## Contributing
277
-
278
-
1. Fork the repository
279
-
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
280
-
3. Commit your changes (`git commit -m 'Add amazing feature'`)
281
-
4. Push to the branch (`git push origin feature/amazing-feature`)
282
-
5. Open a Pull Request
283
-
6. Ensure all tests pass and code quality checks are successful
284
-
7. Merge
285
-
286
-
## Tips
287
-
288
-
1.**Start Simple**: Understand each component before moving to the next
289
-
2.**Read the Logs**: When something fails, the CI/CD logs contain valuable information
290
-
291
-
# 3 Questions
292
-
293
-
## Pre-commit Hooks
294
-
1. How can pre-commit hooks improve code quality and consistency?
295
-
2. How do you configure pre-commit hooks to run only on specific file types or directories?
296
-
297
-
## Code Coverage
298
-
1. What are the benefits of maintaining high code coverage in a project?
299
-
2. What other metrics can be used to assess code quality besides code coverage?
300
-
301
-
## CI/CD and Deployment
302
-
1. What are some strategies for rolling back deployments in case of failures in the CI/CD pipeline?
303
-
2. How can you set up automatic deployments in a production environment while minimizing downtime and ensuring KPOs are met?
288
+
## 3.5 Questions
304
289
305
-
## Kubernetes and Helm
306
290
1. The auto-scaling did not work as expected. What could be the possible reasons?
307
291
2. How does Horizontal Pod Autoscaling (HPA) work in Kubernetes?
0 commit comments