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

minikube helm chart #28

Merged
merged 11 commits into from
Oct 24, 2023
Merged

minikube helm chart #28

merged 11 commits into from
Oct 24, 2023

Conversation

vivian-rook
Copy link
Contributor

modification of quarry to allow for deployment to minikube. Additional changes will be needed when k8s is available in production to allow for production to be deployed to k8s.

** Do not deploy this, not yet ready. **

Bug: T301469

@audiodude
Copy link
Collaborator

I will excuse myself from this code review, because I don't know much about k8s, minikube or helm.

Copy link
Collaborator

@siddharthvp siddharthvp left a comment

Choose a reason for hiding this comment

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

I'm not able to set this up on my local as my 8G RAM system gets bogged down on running docker builds within minikube and the kube apiserver crashes. I'll continue to use the docker-compose dev env as it's quite more lightweight.

However, would be great to see if we can get this working on quarry-kube.wmcloud.org. Leaving some comments from that perspective. I see lots of places in the yaml where we'd need additional conditions to differentiate between dev, prod, and the quarry-kube staging setups. Would be nice to inject the values from a file instead of using if conditions.

helm-quarry/templates/web_deployment.yaml Outdated Show resolved Hide resolved
helm-quarry/templates/db_service.yaml Show resolved Hide resolved
helm-quarry/templates/db_schema_cm.yaml Outdated Show resolved Hide resolved
helm-quarry/templates/NOTES.txt Outdated Show resolved Hide resolved
helm-quarry/templates/web_deployment.yaml Show resolved Hide resolved
quarry/web/worker.py Outdated Show resolved Hide resolved
@vivian-rook
Copy link
Contributor Author

Thank you for the review. A kind of more meta comment. When I first made this I was assuming that the docker-compose env would be replaced by a minikube env. I'm no longer convinced that this is the right immediate path. So I think this is more about having a minikube env to make sure that we would expect the same to work in prod (Or the whole ticket could shift towards prod only, as it is easy enough to deploy multiple clusters in prod now and test there).

There are some disadvantages to this method, namely that dev (docker-compose) and prod wouldn't be mostly the same, that has been a thing in the past, where code on docker-compose works, but on the vms does not. Regardless seems like a bridge for another day.

modification of quarry to allow for deployment to minikube.
Additional changes will be needed when k8s is available in
production to allow for production to be deployed to k8s.

** Do not deploy this **

Bug: T301469
@vivian-rook
Copy link
Contributor Author

I think with this the current VM setup shouldn't notice any difference, and we have a working minikube deploy, which acts as a good starting point to introduce a magnum deploy. Any other views before we merge?

siddharthvp
siddharthvp previously approved these changes Oct 23, 2023
helm-quarry/templates/redis_deployment.yaml Outdated Show resolved Hide resolved
helm-quarry/templates/redis_deployment.yaml Show resolved Hide resolved
@vivian-rook vivian-rook merged commit 312990c into main Oct 24, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants