-
Notifications
You must be signed in to change notification settings - Fork 270
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
feat: stable deployments for spartan #9147
Changes from 3 commits
37528d6
cfe5fff
b09c2dc
2b8c04f
69a7257
e8f440b
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 |
---|---|---|
|
@@ -21,6 +21,31 @@ spec: | |
# We expect the validators to have already been added to the smart contract by this point - but this container still needs | ||
# to be run in order to get the values | ||
initContainers: | ||
- name: wait-for-boot-node | ||
image: {{ .Values.images.curl.image }} | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
until curl -s -X POST -H 'Content-Type: application/json' \ | ||
-d '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' \ | ||
{{ include "aztec-network.ethereumHost" . }} | grep -q anvil; do | ||
echo "Waiting for Ethereum node..." | ||
sleep 5 | ||
done | ||
echo "Ethereum node is ready!" | ||
{{- if .Values.telemetry.enabled }} | ||
until curl --head --silent {{ include "aztec-network.otelCollectorMetricsEndpoint" . }} > /dev/null; do | ||
echo "Waiting for OpenTelemetry collector..." | ||
sleep 5 | ||
done | ||
echo "OpenTelemetry collector is ready!" | ||
{{- end }} | ||
until curl --head --silent {{ include "aztec-network.bootNodeUrl" . }}/status; do | ||
echo "Waiting for boot node..." | ||
sleep 5 | ||
done | ||
|
||
- name: configure-validator-env | ||
image: "{{ .Values.images.aztec.image }}" | ||
imagePullPolicy: {{ .Values.images.aztec.pullPolicy }} | ||
|
@@ -50,7 +75,7 @@ spec: | |
command: | ||
- "/bin/bash" | ||
- "-c" | ||
- "source /shared/contracts.env && env && node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --node --archiver --sequencer" | ||
- "sleep 10 && source /shared/contracts.env && env && node --no-warnings /usr/src/yarn-project/aztec/dest/bin/index.js start --node --archiver --sequencer" | ||
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. Ideally all sleeps would be wait loops otherwise we invite mysterious flakes (and has been the culprit behind many so far), but if it gets us unblocked can be iterated on 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. Yeah this is to allow the k8s DNS name to get set up. It runs before the node even starts, so shouldn't invite too much flake. 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. still ideal to query k8s dns if possible, but yeah nbd |
||
volumeMounts: | ||
- name: shared-volume | ||
mountPath: /shared | ||
|
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 are likely to change node in the future, the grep "anvil" here should probably also be configurable