|
1 | 1 | # 🚀 Document Template Processing Service 🚀 |
2 | 2 |
|
3 | 3 | [](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white) |
4 | | -[](https://hub.docker.com/r/papihack/document-template-processor) |
5 | 4 |  |
| 5 | +[](https://hub.docker.com/r/papihack/document-template-processor) |
| 6 | +[](https://github.com/PapiHack/document-templating-service/tree/master/k8s) |
6 | 7 |  |
7 | 8 |  |
8 | 9 | [](./LICENSE) |
@@ -73,6 +74,27 @@ Or stop and remove all the service with : |
73 | 74 |
|
74 | 75 | docker-compose down |
75 | 76 |
|
| 77 | + |
| 78 | +## Up & Running with Kubernetes |
| 79 | + |
| 80 | +If you want to deploy this project on your kubernetes cluster, you can inspect and/or edit the manifest files available in the |
| 81 | +`k8s` directory before apply them. |
| 82 | + |
| 83 | +Start by creating the namespace named `utils` by running : |
| 84 | + |
| 85 | + kubectl apply -f k8s/namespace.yaml |
| 86 | + |
| 87 | +Then, you can deploy the necessary components by running : |
| 88 | + |
| 89 | + kubectl apply -f k8s/gotenberg -f k8s/document-template-processing |
| 90 | + |
| 91 | +After that, feel free to create an `ingress` for `svc/document-template-processing` if you are using such kind of k8s component. |
| 92 | + |
| 93 | +Otherwise, you can port forward the api service by running the following command before visiting <http://localhost:8000/docs> : |
| 94 | + |
| 95 | + kubectl port-forward svc/document-template-processing 8000:8000 -n utils |
| 96 | + |
| 97 | + |
76 | 98 | ## Usage |
77 | 99 |
|
78 | 100 | For now, you have an endpoint named `/api/v1/process-template-document` that will allow you to make a `POST HTTP REQUEST` by sending two (2) required parameters : |
|
0 commit comments