This repo contains all the code needed to follow along with our YouTube Tutorial or Written Article.
To follow along with this tutorial, you'll need:
- kubectl installed and configured (https://youtu.be/IBkU4dghY0Y)
- Helm installed: https://rayanslim.com/course/prometheus-grafana-monitoring-course/helm-installation
- A GitHub account: (https://github.com/)
helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
kubectl create namespace argocd
helm install argocd argo/argo-cd --namespace argocd
kubectl port-forward svc/argocd-server -n argocd 8080:443
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
Here are commands that you can use to add grades to the Grade Submission API. Windows Users should use Git Bash.
curl -X POST http://localhost:<port>/grades \
-H "Content-Type: application/json" \
-d '{"name": "Harry", "subject": "Defense Against Dark Arts", "score": 95}'
curl -X POST http://localhost:<port>/grades \
-H "Content-Type: application/json" \
-d '{"name": "Ron", "subject": "Charms", "score": 82}'
curl -X POST http://localhost:<port>/grades \
-H "Content-Type: application/json" \
-d '{"name": "Hermione", "subject": "Potions", "score": 98}'
To verify, you can get all grades with:
curl http://localhost:<port>/grades
Learn every tool that matters: https://rayanslim.com