- Namespace: dispensary-scraper → cannaiq - Registry: code.cannabrands.app → git.spdy.io - Database: External PostgreSQL at 10.100.6.50 - MinIO: Internal at 10.100.9.80:9000 - CI: ci.spdy.io 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: scraper-images-pvc
|
|
namespace: cannaiq
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: scraper
|
|
namespace: cannaiq
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: scraper
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: scraper
|
|
spec:
|
|
serviceAccountName: scraper-sa
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: scraper
|
|
image: git.spdy.io/creationshop/cannaiq:latest
|
|
ports:
|
|
- containerPort: 3010
|
|
envFrom:
|
|
- configMapRef:
|
|
name: scraper-config
|
|
- secretRef:
|
|
name: scraper-secrets
|
|
volumeMounts:
|
|
- name: images-storage
|
|
mountPath: /app/public/images
|
|
# Liveness probe: restarts pod if it becomes unresponsive
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3010
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
failureThreshold: 3
|
|
# Readiness probe: removes pod from service if not ready
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3010
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
resources:
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "250m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1000m"
|
|
volumes:
|
|
- name: images-storage
|
|
persistentVolumeClaim:
|
|
claimName: scraper-images-pvc
|