- 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>
37 lines
938 B
YAML
37 lines
938 B
YAML
# RBAC configuration for scraper pod to control worker scaling
|
|
# Allows the scraper to read and scale the scraper-worker statefulset
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: scraper-sa
|
|
namespace: cannaiq
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: worker-scaler
|
|
namespace: cannaiq
|
|
rules:
|
|
# Allow reading deployment and statefulset status
|
|
- apiGroups: ["apps"]
|
|
resources: ["deployments", "statefulsets"]
|
|
verbs: ["get", "list"]
|
|
# Allow scaling deployments and statefulsets
|
|
- apiGroups: ["apps"]
|
|
resources: ["deployments/scale", "statefulsets/scale"]
|
|
verbs: ["get", "patch", "update"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: scraper-worker-scaler
|
|
namespace: cannaiq
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: scraper-sa
|
|
namespace: cannaiq
|
|
roleRef:
|
|
kind: Role
|
|
name: worker-scaler
|
|
apiGroup: rbac.authorization.k8s.io
|