You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubectl wait --for=condition=Ready pod -l k8s-app=kube-dns -n kube-system --timeout=300s
188
+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=traefik -n kube-system --timeout=300s
189
+
kubectl get nodes
190
+
kubectl get pods --all-namespaces
191
+
sleep 10
192
+
echo "✅ K3s is ready"
193
+
194
+
- name: Deploy eoAPI with monitoring
195
+
run: |
196
+
echo "=== Deploying eoAPI with monitoring stack ==="
197
+
export RELEASE_NAME="$RELEASE_NAME"
198
+
export PGO_VERSION="${{ env.PGO_VERSION }}"
199
+
export GITHUB_SHA="${{ github.sha }}"
200
+
export CI_MODE=true
201
+
export OBSERVABILITY_MODE=true
202
+
203
+
# Deploy using consolidated script with observability mode enabled
204
+
./scripts/deploy.sh --ci
205
+
206
+
- name: Wait for monitoring stack to be ready
207
+
run: |
208
+
echo "=== Waiting for monitoring components ==="
209
+
210
+
# Wait for metrics-server first (required for HPA)
211
+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=metrics-server -n eoapi --timeout=300s || echo "metrics-server not ready"
212
+
213
+
# Wait for Prometheus server
214
+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/component=server,app.kubernetes.io/name=prometheus -n eoapi --timeout=300s || echo "Prometheus server not ready"
215
+
216
+
# Wait for Grafana
217
+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=grafana -n eoapi --timeout=300s || echo "Grafana not ready"
218
+
219
+
# Wait for prometheus-adapter
220
+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=prometheus-adapter -n eoapi --timeout=300s || echo "prometheus-adapter not ready"
for pod in $(kubectl get pods -n eoapi --field-selector=status.phase!=Running --no-headers -o custom-columns=":metadata.name" 2>/dev/null || echo ""); do
0 commit comments