fix: Use registry.spdy.io for k8s deployments
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- Update kubectl set image commands to use HTTPS registry URL - Fix namespace from cannaiq to dispensary-scraper - Add guidance on when to use which registry URL 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -167,7 +167,7 @@ steps:
|
|||||||
contexts:
|
contexts:
|
||||||
- context:
|
- context:
|
||||||
cluster: spdy-k3s
|
cluster: spdy-k3s
|
||||||
namespace: cannaiq
|
namespace: dispensary-scraper
|
||||||
user: cannaiq-admin
|
user: cannaiq-admin
|
||||||
name: cannaiq
|
name: cannaiq
|
||||||
current-context: cannaiq
|
current-context: cannaiq
|
||||||
@@ -177,14 +177,14 @@ steps:
|
|||||||
token: $K8S_TOKEN
|
token: $K8S_TOKEN
|
||||||
KUBEEOF
|
KUBEEOF
|
||||||
- chmod 600 ~/.kube/config
|
- chmod 600 ~/.kube/config
|
||||||
- kubectl set image deployment/scraper scraper=10.100.9.70:5000/cannaiq/backend:sha-${CI_COMMIT_SHA:0:8} -n cannaiq
|
- kubectl set image deployment/scraper scraper=registry.spdy.io/cannaiq/backend:sha-${CI_COMMIT_SHA:0:8} -n dispensary-scraper
|
||||||
- kubectl rollout status deployment/scraper -n cannaiq --timeout=300s
|
- kubectl rollout status deployment/scraper -n dispensary-scraper --timeout=300s
|
||||||
- REPLICAS=$(kubectl get deployment scraper-worker -n cannaiq -o jsonpath='{.spec.replicas}'); if [ "$REPLICAS" = "0" ]; then kubectl scale deployment/scraper-worker --replicas=5 -n cannaiq; fi
|
- REPLICAS=$(kubectl get deployment scraper-worker -n dispensary-scraper -o jsonpath='{.spec.replicas}'); if [ "$REPLICAS" = "0" ]; then kubectl scale deployment/scraper-worker --replicas=5 -n dispensary-scraper; fi
|
||||||
- kubectl set image deployment/scraper-worker worker=10.100.9.70:5000/cannaiq/backend:sha-${CI_COMMIT_SHA:0:8} -n cannaiq
|
- kubectl set image deployment/scraper-worker worker=registry.spdy.io/cannaiq/backend:sha-${CI_COMMIT_SHA:0:8} -n dispensary-scraper
|
||||||
- kubectl set image deployment/cannaiq-frontend cannaiq-frontend=10.100.9.70:5000/cannaiq/frontend:sha-${CI_COMMIT_SHA:0:8} -n cannaiq
|
- kubectl set image deployment/cannaiq-frontend cannaiq-frontend=registry.spdy.io/cannaiq/frontend:sha-${CI_COMMIT_SHA:0:8} -n dispensary-scraper
|
||||||
- kubectl set image deployment/findadispo-frontend findadispo-frontend=10.100.9.70:5000/cannaiq/findadispo:sha-${CI_COMMIT_SHA:0:8} -n cannaiq
|
- kubectl set image deployment/findadispo-frontend findadispo-frontend=registry.spdy.io/cannaiq/findadispo:sha-${CI_COMMIT_SHA:0:8} -n dispensary-scraper
|
||||||
- kubectl set image deployment/findagram-frontend findagram-frontend=10.100.9.70:5000/cannaiq/findagram:sha-${CI_COMMIT_SHA:0:8} -n cannaiq
|
- kubectl set image deployment/findagram-frontend findagram-frontend=registry.spdy.io/cannaiq/findagram:sha-${CI_COMMIT_SHA:0:8} -n dispensary-scraper
|
||||||
- kubectl rollout status deployment/cannaiq-frontend -n cannaiq --timeout=120s
|
- kubectl rollout status deployment/cannaiq-frontend -n dispensary-scraper --timeout=120s
|
||||||
depends_on:
|
depends_on:
|
||||||
- docker-backend
|
- docker-backend
|
||||||
- docker-cannaiq
|
- docker-cannaiq
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Using the Local Docker Registry Cache
|
# Using the Docker Registry Cache
|
||||||
|
|
||||||
To avoid Docker Hub rate limits, use our local registry mirror at `10.100.9.70:5000`.
|
To avoid Docker Hub rate limits, use our registry at `registry.spdy.io` (HTTPS) or `10.100.9.70:5000` (HTTP internal).
|
||||||
|
|
||||||
## For Woodpecker CI (Kaniko builds)
|
## For Woodpecker CI (Kaniko builds)
|
||||||
|
|
||||||
@@ -46,10 +46,19 @@ kubectl run cache-image --rm -it --restart=Never \
|
|||||||
-- copy docker.io/library/IMAGE:TAG 10.100.9.70:5000/library/IMAGE:TAG --insecure
|
-- copy docker.io/library/IMAGE:TAG 10.100.9.70:5000/library/IMAGE:TAG --insecure
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Which Registry URL to Use
|
||||||
|
|
||||||
|
| Context | URL | Why |
|
||||||
|
|---------|-----|-----|
|
||||||
|
| Kaniko builds (CI) | `10.100.9.70:5000` | Internal HTTP, faster |
|
||||||
|
| kubectl set image | `registry.spdy.io` | HTTPS, k8s nodes can pull |
|
||||||
|
| Checking images | Either works | Same backend |
|
||||||
|
|
||||||
## DO NOT USE
|
## DO NOT USE
|
||||||
|
|
||||||
- ~~`--registry-mirror=mirror.gcr.io`~~ - Rate limited by Docker Hub
|
- ~~`--registry-mirror=mirror.gcr.io`~~ - Rate limited by Docker Hub
|
||||||
- ~~Direct pulls from `docker.io`~~ - Rate limited (100 pulls/6hr anonymous)
|
- ~~Direct pulls from `docker.io`~~ - Rate limited (100 pulls/6hr anonymous)
|
||||||
|
- ~~`10.100.9.70:5000` in kubectl commands~~ - k8s nodes require HTTPS
|
||||||
|
|
||||||
## Checking Cached Images
|
## Checking Cached Images
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user