Skip to content

Commit 13dc2cd

Browse files
committed
Fix Client and auth verifications
1 parent c24d2c3 commit 13dc2cd

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

β€Ž.github/workflows/deploy-auth-service.ymlβ€Ž

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,16 @@ jobs:
137137
run: |
138138
echo "πŸ” Verifying auth service deployment..."
139139
140-
# Wait for pod to be ready
141-
kubectl wait --for=condition=ready pod -l app.kubernetes.io/component=auth-service -n study-mate --timeout=300s || {
142-
echo "❌ Auth service pod failed to become ready"
140+
# Wait a bit for old pods to terminate after Helm upgrade
141+
echo "⏳ Waiting for deployment to stabilize..."
142+
sleep 30
143+
144+
# Wait for deployment to be ready (more reliable than waiting for specific pods)
145+
echo "πŸ” Waiting for deployment to be ready..."
146+
kubectl rollout status deployment/study-mate-auth-service -n study-mate --timeout=300s || {
147+
echo "❌ Auth service deployment failed to become ready"
148+
echo "πŸ” Deployment status:"
149+
kubectl describe deployment study-mate-auth-service -n study-mate
143150
echo "πŸ” Pod status:"
144151
kubectl get pods -n study-mate -l app.kubernetes.io/component=auth-service -o wide
145152
echo "πŸ” Pod logs:"
@@ -154,7 +161,7 @@ jobs:
154161
155162
# Health check
156163
echo "πŸ₯ Performing health check..."
157-
kubectl port-forward svc/auth-service 8086:8086 -n study-mate &
164+
kubectl port-forward svc/study-mate-auth-service 8086:8086 -n study-mate &
158165
PF_PID=$!
159166
sleep 10
160167
@@ -176,7 +183,7 @@ jobs:
176183
echo "πŸ”§ Useful commands:"
177184
echo " kubectl get pods -n study-mate -l app.kubernetes.io/component=auth-service"
178185
echo " kubectl logs -f deployment/auth-service -n study-mate"
179-
echo " kubectl port-forward svc/auth-service 8086:8086 -n study-mate"
186+
echo " kubectl port-forward svc/study-mate-auth-service 8086:8086 -n study-mate"
180187
echo ""
181188
echo "πŸ” Troubleshooting:"
182189
echo " kubectl get events -n study-mate --sort-by='.lastTimestamp'"

β€Ž.github/workflows/deploy-client.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
kubectl get service client -n study-mate
158158
159159
# Check ingress
160-
kubectl get ingress client -n study-mate
160+
kubectl get ingress study-mate-client-ingress -n study-mate
161161
162162
# Health check
163163
echo "πŸ₯ Performing health check..."

0 commit comments

Comments
Β (0)