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
Kustomize provisioning Provider updates #910
Conversation
400dd80
to
b97b226
Compare
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.
looks awesome
@@ -19,7 +19,7 @@ configMapGenerator: | |||
literals: | |||
- home=/home | |||
- from=main | |||
- node=tcp://akashd:26657 | |||
- node=http://akashd:26657 |
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.
no longer tcp://
?
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.
New sdk changes... seems like a weird config artifact that might get flipped back.
@@ -2,6 +2,7 @@ kind: Cluster | |||
apiVersion: kind.x-k8s.io/v1alpha4 | |||
nodes: | |||
- role: control-plane | |||
image: kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600 |
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.
can you use just v1.19.1
?
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.
Following the kind docs. They suggest including the sha sum.
52fb904
to
59bf7a7
Compare
export AKASHCTL_CHAIN_ID=testnet-v4 | ||
export AKASH_NODE=tcp://rpc-edgenet.akashdev.net:26657 | ||
export AKASH_CHAIN_ID=edgenet | ||
export AKASH_KEYRING_BACKEND=test |
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.
Are these not read from the environment later on? I see the flags are used everywhere.
@boz the way that cosmos SDK is built it is mandatory to set |
@hydrogen18 what about these? if not, is the idea to just keep it consistent for now?
It's really a bummer. Maybe there are some quickfix solutions #908 |
For now the easiest solution is to just specify it everywhere, including examples so anyone looking at them nows to set them. In the kustomize scripts we can do stuff like |
Yeah I'm going to second @hydrogen18, the envvar configuration doesn't work, the required flag burns us. For now unfortunately this verbose CLI configuration is the only way. To make it messier, we can't just set a flag like |
That's what is being done in the guide right now.
Again, it's only for
It's not even being set on all key commands right now (see the export section). Anyways, was any progress made on this today? |
I need to rebase this, but otherwise are we good to merge? |
* `akash` binary documentation cleanup. * `akashctl` -> `akash` binary * `akt` -> `uakt` Upgrade kustomize configuration for Kubernetes 1.19 * Corrected `akash` params for configuration commands * Utilize local directories for kustomization files * Cleanup akash relevant namespaces with Make. * Functional _run/single: akash + provider * Major change uses the cli flags to `akash provider` to pass configuration. * Kustomize: rename Deployment/Ingress `akashd` -> `akash-node` * akash-node URL: akash.localhost (updated Makefiles) * Updated documentation * k8s internal service `akashd` -> `akash-node` fixes: https://github.com/ovrclk/akash/issues/909 Signed-off-by: Josh Roppo <josh@akash.network>
59bf7a7
to
ec7fd65
Compare
``` | ||
|
||
### Configure Kubernetes Akash Namespace | ||
|
||
Create the `akash-services` namespace for running Provider. | ||
|
||
```sh | ||
kubectl apply -f https://raw.githubusercontent.com/ovrclk/akash/master/_docs/kustomize/namespace.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/ovrclk/akash/master/_docs/kustomize/networking/namespace.yaml |
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.
I think we should reference this from the filesystem, rather than this document. Otherwise a user could get master which may have diverged.
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.
I tend to agree with your point, however this namespace.yaml
might be one of the few exceptions since it probably won't ever change.
For example files like deployment.yaml
, or kustomization.yaml
which will have version specific changes, are more fragile to break referencing master.
Hold off on reviewing until after CI runsDocumentation updates for running a provider with
kustomize
configuration, running testing through the_run/single
environment. Main problem was debugging our CLI situation which @hydrogen18 discovered is probably related to the methods used to access command flags.akashctl
->akash
binary(cleanup of old references)akt
->uakt
akash
params for configuration commandsakash provider
to passconfiguration.
akashd
->akash-node
fixes: https://github.com/ovrclk/akash/issues/909