stellar / helm-charts Goto Github PK
View Code? Open in Web Editor NEWHelm charts for deploying SDF maintained software
Helm charts for deploying SDF maintained software
main
helm repo add stellar https://helm.stellar.org/charts && helm repo update stellar
helm install testcore stellar/core --namespace sandbox --set global.image.core.tag=19.13.1-1459.bf4363684.focal --set global.network=testnet --devel
running core deployment on cluster
kubectl describe pod/testcore-0 -n sandbox
...
Init Containers:
core-new-db:
Container ID: containerd://bc0038c94b191f2ad5302b5ee43ebc664fd74c93c02f0de0db7b38b1b91cd113
Image: docker.io/stellar/stellar-core:19.13.1-1459.bf4363684.focal
Image ID: docker.io/stellar/stellar-core@sha256:a8e293cb0cbdbbc548025ad1fd13dd4fef3160d55c7cdf6e75a9bbd9df62e4e4
Port: 11626/TCP
Host Port: 0/TCP
Args:
new-db
--conf
/config/stellar-core.cfg
--console
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Thu, 31 Aug 2023 16:07:31 -0700
Finished: Thu, 31 Aug 2023 16:07:31 -0700
Ready: False
Restart Count: 4
Limits:
cpu: 250m
memory: 512Mi
Requests:
cpu: 100m
memory: 256Mi
Environment: <none>
Mounts:
/config from core-config (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-n5zzb (ro)
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m23s default-scheduler Successfully assigned sandbox/testcore-0 to ip-172-22-24-82.ec2.internal
Normal Pulled 2m20s kubelet Successfully pulled image "docker.io/stellar/stellar-core:19.13.1-1459.bf4363684.focal" in 1.973165104s
Normal Pulled 2m19s kubelet Successfully pulled image "docker.io/stellar/stellar-core:19.13.1-1459.bf4363684.focal" in 102.370461ms
Normal Pulling 2m5s (x3 over 2m22s) kubelet Pulling image "docker.io/stellar/stellar-core:19.13.1-1459.bf4363684.focal"
Normal Created 2m5s (x3 over 2m20s) kubelet Created container core-new-db
Normal Started 2m5s (x3 over 2m20s) kubelet Started container core-new-db
Normal Pulled 2m5s kubelet Successfully pulled image "docker.io/stellar/stellar-core:19.13.1-1459.bf4363684.focal" in 97.389568ms
Warning DNSConfigForming 110s (x9 over 2m22s) kubelet Search Line limits were exceeded, some search paths have been omitted, the applied search line is: sandbox.svc.cluster.local svc.cluster.local cluster.local dev.kube001.internal.stellar-ops.com internal.stellar-ops.com dev.services.stellar-ops.com
Warning BackOff 110s (x4 over 2m18s) kubelet Back-off restarting failed container
main
helm repo add stellar https://helm.stellar.org/charts && helm repo update stellar
helm install testhorizon stellar/horizon --namespace sandbox --set global.image.horizon.tag=2.26.1 --set global.network=testnet --devel
horizon service running on cluster
statefulset startup failed due to pod/spec error:
kubectl get events -n sandbox
LAST SEEN TYPE REASON OBJECT MESSAGE
69s Warning FailedCreate statefulset/my-horizon-ingest create Pod my-horizon-ingest-0 in StatefulSet my-horizon-ingest failed error: Pod "my-horizon-ingest-0" is invalid: spec.containers[0].envFrom[0].secretRef.name: Required value
looking at the statefulset created by helm on cluster, can see the secretRef
issue, looks like it has invalid yaml, some empty braces:
....
spec:
containers:
- args:
- --apply-migrations
envFrom:
- secretRef: {}
- configMapRef:
name: my-horizon-ingest-env
image: docker.io/stellar/stellar-horizon:2.26.1
imagePullPolicy: Always
name: horizon
....
RPC usage of Statefulset on k8s may have leave potential for problems during rolling upgrades:
The rpc rolling upgrade will not corrupt the underlying pvc and will not exhibit any http service downtime during the rollout.
Evaluate if converting to a Deployment with Recreate update strategy, and deifne a stand-alone PVC which the deployment will reference for volume mount, will fix the http service downtime aspect, that rollout should retain the old pod until new pod passes readinessProbe.
In it's current form, RPC takes ~30 minutes to deploy new versions to pubnet (thread1, thread2) due to iops limits when initializing it's in-memory data storage from disk.
A new RPC version rolls out, and there's no disruption in service. There is also no loss of historical transaction/events history upon rollout (that is, the db/history does not reset to nothing).
if you want to install the helm chart for core on testnet or pubnet, there is no reference values.yml to use, which aggregates many specific settings needed for network like validators, passphrase, archive urls, etc. it would take a long time and be error prone to try and set that up manually.
testnet_values.yml
and pubnet_values.yml
are created in the core chart path to be usable in helm install --values
.
Or global.network=[testnet|pubnet]
works the same and prevents need for testnet_values.yml
and pubnet_values.yml
.
updated docs can refer to correct config - stellar/stellar-docs#216
users take the futurenet_values.yml and manually figure out the changes from there for testnet or pubnet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.