-
Notifications
You must be signed in to change notification settings - Fork 14
docs: 1701 document single node k8s deployment #1877
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
Open
Nana-EC
wants to merge
3
commits into
main
Choose a base branch
from
1701-document-single-node-k8s-deploment
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| version: '3' | ||
|
|
||
| dotenv: ['.env'] | ||
|
|
||
| tasks: | ||
| clear-release: | ||
| cmds: | ||
| - helm uninstall $RELEASE -n $NAMESPACE | ||
| - kubectl delete pvc -n $NAMESPACE live-storage-pvc logging-storage-pvc archive-storage-pvc | ||
| - kubectl delete pv -n $NAMESPACE archive-storage-pv live-storage-pv logging-storage-pv | ||
| - kubectl delete namespace $NAMESPACE | ||
|
|
||
| load-kubectl-helm: | ||
| cmds: | ||
| - mkdir -p ${HOME}/.kube | ||
| - sudo cp /etc/kubernetes/admin.conf ${HOME}/.kube/config | ||
| - sudo chown $(id -un):$(id -un) ${HOME}/.kube/config | ||
| - export PATH="/opt/solo/provisioner/sandbox/bin:${PATH}" | ||
| - command -v helm | ||
| - kubectl config get-clusters | ||
| - mkdir values-override | ||
|
|
||
| helm-release: | ||
| cmds: | ||
| - kubectl create namespace $NAMESPACE | ||
| - kubectl apply -f values-override/host-path.yaml | ||
| - helm install $RELEASE oci://ghcr.io/hiero-ledger/hiero-block-node/block-node-server --version $VERSION -n $NAMESPACE --values values-override/bare-metal-values.yaml | ||
| - kubectl annotate -n $NAMESPACE service $RELEASE-block-node-server "metallb.io/address-pool=public-address-pool" | ||
| - sleep 90 | ||
| - kubectl get all -n $NAMESPACE | ||
|
|
||
| helm-upgrade: | ||
| cmds: | ||
| - helm upgrade $RELEASE oci://ghcr.io/hiero-ledger/hiero-block-node/block-node-server --version $VERSION -n $NAMESPACE --install --values values-override/bare-metal-values.yaml | ||
| - kubectl get all -n $NAMESPACE | ||
|
|
||
| reset-file-store: | ||
| cmds: | ||
| - kubectl -n ${NAMESPACE} exec ${POD} -- sh -c 'rm -rf /opt/hiero/block-node/data/live/* /opt/hiero/block-node/data/historic/*' | ||
| - kubectl -n ${NAMESPACE} delete pod $POD | ||
|
|
||
| reset-upgrade: | ||
| cmds: | ||
| - task: reset-file-store | ||
| - task: helm-upgrade | ||
|
|
||
| restart-bn: | ||
| cmds: | ||
| - kubectl rollout restart deployment $RELEASE-block-node-server -n $NAMESPACE | ||
|
|
||
| setup-bn-proto: | ||
| cmds: | ||
| - curl -L https://github.com/hiero-ledger/hiero-block-node/releases/download/v$VERSION/block-node-protobuf-$VERSION.tgz -o block-node-protobuf-$VERSION.tgz | ||
| - tar -xzf block-node-protobuf-$VERSION.tgz -C ~/block-node-protobuf-$VERSION | ||
| - rm block-node-protobuf-$VERSION.tgz | ||
|
|
||
| setup-grpcurl: | ||
| cmds: | ||
| - curl -L https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_x86_64.tar.gz -o grpcurl.tar.gz | ||
| - sudo tar -xzf grpcurl.tar.gz -C /usr/local/bin grpcurl | ||
| - rm grpcurl.tar.gz | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
we talk about
resetas a storage clean, but for someresetmight mean "restart".should we be more explicit? I believe we can make comments in this task file. maybe a comment is enough.
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.
All resets should clear store to make BN be new. Only consideration is if you upgrade along with the reset.
I added the restart prior but comments would be good agreed