Skip to content

Commit ec8fea3

Browse files
kabirclaude
andcommitted
fix(ci): Patch imagePullPolicy to Never for loaded images
After loading the image into minikube, Kubernetes still tries to pull from the registry by default. Patch the deployment to use imagePullPolicy: Never so it uses the locally loaded image. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 69d338b commit ec8fea3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cloud-deployment-example.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,14 @@ jobs:
6767
echo "Verifying image in minikube:"
6868
minikube ssh -- docker images | grep a2a-cloud-deployment
6969
70-
# Deploy the agent
70+
# Deploy the agent with modified imagePullPolicy
7171
echo "Deploying agent..."
7272
kubectl apply -f k8s/04-agent-deployment.yaml
7373
74+
# Patch to use Never imagePullPolicy (use local image, don't pull)
75+
kubectl patch deployment a2a-agent -n a2a-demo --type='json' \
76+
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/imagePullPolicy", "value": "Never"}]'
77+
7478
echo "Waiting for agent pods to be ready..."
7579
kubectl wait --for=condition=Ready pod -l app=a2a-agent -n a2a-demo --timeout=120s
7680

0 commit comments

Comments
 (0)