You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way to run scripts that change or update the state of the system are via a script run locally with port forwarded locally.
NOTE: Nice to have feature
We need a way to run a script against the system from inside the k8s cluster itself. This will alow us to get the whole cluster to a desiered state. Example of scripts that we would run via this process:
Create inital pools on osmosis that IBC tokens from another chain
Upload predefined contracts to the wasm based chain
Transfer tokens to some wallets to or ibc token from one chain to another
Design
We run all the jobs values.yaml
# cat values.yaml
---
jobs:
- name: "Osmosis pool creation script"type: "cosmjs"# one of cosmjs or bash type of jobimage: "<custom image>"# default image will be based on the type, can be specificly specifiedscripts: # This will be mounted as a volume to the k8s cluster via configmaps
- examples/osmosis-setup/run: | # run will be set as command for the job npm install npm build npm run test
- name: "Move atoms from gaia to persistenceCore"type: "bash"image: "<custom image>"scripts:
- examples/persistence-gaia-setup.shrun: | bash ./examples/presistence-gaia-setup.sh
---
Benifits of this would be we can make state setup as part of cluster startup. This is nice feature to have, since we are already able to have external setup scripts that can run against the cluster and get the state to a new stage.
Down the line
These are scripts that set the state of the system, overtime this can be a workflow type of system as well and create DAGs
The text was updated successfully, but these errors were encountered:
Overview
Currently the only way to run scripts that change or update the state of the system are via a script run locally with port forwarded locally.
NOTE: Nice to have feature
We need a way to run a script against the system from inside the k8s cluster itself. This will alow us to get the whole cluster to a desiered state. Example of scripts that we would run via this process:
Design
We run all the jobs
values.yaml
Benifits of this would be we can make state setup as part of cluster startup. This is nice feature to have, since we are already able to have external setup scripts that can run against the cluster and get the state to a new stage.
Down the line
These are scripts that set the state of the system, overtime this can be a workflow type of system as well and create DAGs
The text was updated successfully, but these errors were encountered: