-
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| 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: | ||
| - kubectl -n ${NAMESPACE} exec ${POD} -- sh -c 'rm -rf /opt/hiero/block-node/data/live/* /opt/hiero/block-node/data/historic/*' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we re-use the |
||
| - kubectl -n ${NAMESPACE} delete pod $POD | ||
| - 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 | ||
| - sleep 90 | ||
| - kubectl get all -n $NAMESPACE | ||
|
Comment on lines
+46
to
+48
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we reuse the |
||
|
|
||
| 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 | ||
|
|
||
| scale-bn: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why we call this job |
||
| cmds: | ||
| - kubectl scale deployment $RELEASE-block-node-server -n $NAMESPACE --replicas=0 | ||
| - sleep 10 | ||
| - kubectl scale deployment $RELEASE-block-node-server -n $NAMESPACE --replicas=1 | ||
| - sleep 90 | ||
| - kubectl get all -n $NAMESPACE | ||
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.