Skip to content
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

ci: wait for all pods ready post-deploy #4091

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ metadata:
app.kubernetes.io/part-of: {{ include "penumbra-network.part_of" $ }}
{{- include "penumbra-network.labels" $ | nindent 4 }}
spec:
podManagementPolicy: Parallel
replicas: {{ $count }}
volumeClaimTemplates:
- metadata:
Expand Down
2 changes: 2 additions & 0 deletions deployments/charts/penumbra-node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
"app.kubernetes.io/part-of": {{ .Values.part_of }}
{{- end }}
spec:
podManagementPolicy: Parallel
replicas: {{ .Values.nodes | len | int }}
volumeClaimTemplates:
- metadata:
Expand Down Expand Up @@ -48,6 +49,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "penumbra-node.labels" . | nindent 8 }}
{{- include "penumbra-node.selectorLabels" . | nindent 8 }}
spec:
# Force the pods to different k8s nodes, so that egress ip is unique per CometBFT node.
Expand Down
3 changes: 2 additions & 1 deletion deployments/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ function helm_install() {
}

function wait_for_pods_to_be_running() {
echo "Waiting for pods to be running..."
echo "Waiting for pods to be running ($(date))..."
kubectl wait --for=condition=ready pods --timeout=5m \
-l app.kubernetes.io/part-of="$HELM_RELEASE"
echo "Done waiting for pods to be running ($(date))"
}

# Deploy a fresh testnet, destroying all prior chain state with new genesis.
Expand Down
Loading