Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cd: deploy to k8s and add workflow #52

Merged
merged 4 commits into from
Dec 5, 2024
Merged

cd: deploy to k8s and add workflow #52

merged 4 commits into from
Dec 5, 2024

Conversation

Charlie-XIAO
Copy link
Contributor

@Charlie-XIAO Charlie-XIAO commented Dec 5, 2024

This PR adds the Ansible playbook for deploying K8S cluster. The K8S cluster consists of only the frontend and the backend, where the vector database is on an individual VM outside the cluster #51.

Comment on lines +35 to +37
FRONTEND_URL = os.getenv("FRONTEND_URL")
CHROMADB_HOST = os.getenv("CHROMADB_HOST", "localhost")
SERVER_ROOT_PATH = os.getenv("SERVER_ROOT_PATH", "")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Header Development Production Explanation
FRONTEND_URL http://localhost:8080 None In development this is needed for CORS. In production frontend and backend are same origin (one at / and one at /api/).
CHROMADB_HOST chromadb 35.188.136.220 In development this is according to the docker network created by docker compose. In production this is the external IP of the VM on which chromadb is deployed #51.
SERVER_ROOT_PATH Empty string /app In development the backend is at root of localhost port 8001. In production it is served at /api/ and we need openapi docs to be aware.

@Charlie-XIAO Charlie-XIAO merged commit 28cd3b5 into main Dec 5, 2024
3 checks passed
@Charlie-XIAO Charlie-XIAO deleted the deploy-k8s branch December 5, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant