Skip to content

Fix k8s-deploy to use registry images from CI/CD#7

Merged
kenahrens merged 2 commits intomasterfrom
fix/k8s-deploy-registry-images
Jul 22, 2025
Merged

Fix k8s-deploy to use registry images from CI/CD#7
kenahrens merged 2 commits intomasterfrom
fix/k8s-deploy-registry-images

Conversation

@kenahrens
Copy link
Copy Markdown
Member

Summary

Fixes k8s-deploy to use registry images from CI/CD instead of local images that don't exist.

Problem

make k8s-deploy was failing with:

Container image "banking-accounts-service:latest" is not present with pull policy of Never

Root cause: k8s-deploy was using restore-local-images which sets:

  • imagePullPolicy: Never (local only)
  • Local image names like banking-accounts-service:latest

But no local images exist - we should use the CI/CD registry images.

Solution

  • k8s-deploy: Now uses update-images → pulls from registry (ghcr.io/speedscale/microsvc/*)
  • k8s-deploy-local: New target for local development with local images
  • minikube-deploy: Updated to use local images (k8s-deploy-local)

Usage

  • make k8s-deploy - Deploy with CI/CD registry images ✅
  • make k8s-deploy-local - Deploy with local images (for dev)
  • make minikube-deploy - Still works for local development

Test plan

  • Updated help text reflects new behavior
  • Test make k8s-deploy - should pull registry images
  • Verify pods start successfully

🤖 Generated with Claude Code

kenahrens and others added 2 commits July 21, 2025 18:52
- Remove hardcoded 'standard' storageClassName from postgres-pvc.yaml
- Now uses default StorageClass (do-block-storage on DigitalOcean)
- Fixes "storageclass.storage.k8s.io 'standard' not found" error
- Makes PVC more portable across different Kubernetes environments

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Changed k8s-deploy to use update-images (registry) instead of restore-local-images
- Added k8s-deploy-local target for local development with local images
- Updated minikube-deploy alias to point to k8s-deploy-local
- Updated help text to clarify image sources
- Now k8s-deploy uses CI/CD registry images by default

Fixes: "Container image 'banking-accounts-service:latest' is not present with pull policy of Never"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@kenahrens kenahrens merged commit 3732333 into master Jul 22, 2025
2 of 4 checks passed
@kenahrens kenahrens deleted the fix/k8s-deploy-registry-images branch August 1, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant