-
Notifications
You must be signed in to change notification settings - Fork 54
warcli cluster refactors
#419
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
Conversation
|
The k8s python lib we use might have a create_from_yaml() method which might replace the need for using python to execute I would love to reduce the mix of shell and python as much as possible, ideally all the justfile commands can just be executed by warcli. |
|
I am also getting an ErrImageNeverPull error in kubectl after doing a |
a1ff4c8 to
8c19c35
Compare
Added a commit with this fix, seems to work just the same for me but I hope fixes for you.
Hmm, I don't know how you might be getting this. I guess it comes from statefulset-dev.yaml (where we spec to Never pull, as built image should be loaded in local cache). Are you able to provide repro steps/or configuration being used? |
8c19c35 to
4eb838f
Compare
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones: If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
I really like this. I think it could be improved with some slight changes to make it clear what's for prod and what's for local. How about:
Without dev flag, just install the production image same tag as the source code |
4eb838f to
e57519b
Compare
|
OK @m3dwards @pinheadmz, I think this should be a fair bit closer to what you were imagining. I did not add any
I am sure it can be done, but not sure I have the stomach for it here 😋 |
|
@mplsgrant I kept the check for I am not actually sure why it seemed to work for me without it, but it should be needed to build the image: https://github.com/bitcoin-dev-project/warnet/pull/419/files#diff-444b1723cb5f02d3a7b6b4616e5e72f841e957f1c0973cc87fa4cb5cc06fdfb2R100 |
|
$WAR_RPC is set in cluster.py and sent into the bash script as an env variable. |
|
|
||
| # Deploy rpc server | ||
| if [ -n "${WAR_DEV+x}" ]; then # Dev mode selector | ||
| if [ "$(kubectl config current-context)" = "docker-desktop" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we build the dev container on this line?
|
Tested both docker desktop and minikube and all appeared to work. |
warcli clustercommands:warcli cluster configurewarcli cluster deploynow runs the same script as the justfile, deploying on whatever the connected cluster is