Kubernetes configuration for deployment of Auto-DL.
- Configure the variables in configmap.yaml
- Create a secrets file in
k8s/
with following contents
MONGODB_URI=YOUR_MONGODB_CONNECTION_STRING
JWT_SECRET=YOUR_JWT_SECRET
- Apply all the
yaml
configuration usingkubectl
cd k8s/
kubectl apply -f configmap.yaml
kubectl create secret generic autodl-secret --from-env-file=secrets
kubectl apply -f backend-deployment.yaml
kubectl apply -f backend-service.yaml
kubectl apply -f frontend-deployment.yaml
kubectl apply -f frontnend-service.yaml
kubectl apply -f ingress.yaml
- Check the status of the
pods
andservices
- You have a working Auto-DL deployment 🎉
Note: Install kubeval to run the pre-commit hooks for validating the k8s yaml configuration.