docs: Add spdy.io infrastructure credentials
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
104
docs/SPDY_INFRASTRUCTURE.md
Normal file
104
docs/SPDY_INFRASTRUCTURE.md
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
# CannaIQ Infrastructure (spdy.io)
|
||||||
|
|
||||||
|
External services for the spdy.io Kubernetes cluster. **Do not create containers for these.**
|
||||||
|
|
||||||
|
## PostgreSQL
|
||||||
|
|
||||||
|
| Setting | Value |
|
||||||
|
|----------|----------------------|
|
||||||
|
| Host | 10.100.6.50 |
|
||||||
|
| Port | 5432 |
|
||||||
|
| Database | cannaiq |
|
||||||
|
| Username | cannaiq |
|
||||||
|
| Password | SpDyCannaIQ2024 |
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Connection string
|
||||||
|
DATABASE_URL=postgres://cannaiq:SpDyCannaIQ2024@10.100.6.50:5432/cannaiq
|
||||||
|
|
||||||
|
# Test connection
|
||||||
|
PGPASSWORD='SpDyCannaIQ2024' psql -h 10.100.6.50 -p 5432 -U cannaiq -d cannaiq -c "SELECT 1"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Redis
|
||||||
|
|
||||||
|
| Setting | Value |
|
||||||
|
|----------|----------------|
|
||||||
|
| Host | 10.100.9.50 |
|
||||||
|
| Port | 6379 |
|
||||||
|
| Password | SpDyR3d1s2024! |
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Connection URL
|
||||||
|
REDIS_URL=redis://:SpDyR3d1s2024!@10.100.9.50:6379
|
||||||
|
|
||||||
|
# Node.js .env
|
||||||
|
REDIS_HOST=10.100.9.50
|
||||||
|
REDIS_PORT=6379
|
||||||
|
REDIS_PASSWORD=SpDyR3d1s2024!
|
||||||
|
```
|
||||||
|
|
||||||
|
## MinIO (S3-Compatible Storage)
|
||||||
|
|
||||||
|
| Setting | Value |
|
||||||
|
|----------------|------------------|
|
||||||
|
| Endpoint | 10.100.9.80:9000 |
|
||||||
|
| Console | 10.100.9.80:9001 |
|
||||||
|
| Region | us-east-1 |
|
||||||
|
| Use Path Style | true |
|
||||||
|
|
||||||
|
### CannaIQ Bucket
|
||||||
|
|
||||||
|
| Setting | Value |
|
||||||
|
|------------|----------------|
|
||||||
|
| Bucket | cannaiq |
|
||||||
|
| Access Key | cannaiq-app |
|
||||||
|
| Secret Key | cannaiq-secret |
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Node.js .env
|
||||||
|
MINIO_ENDPOINT=10.100.9.80
|
||||||
|
MINIO_PORT=9000
|
||||||
|
MINIO_ACCESS_KEY=cannaiq-app
|
||||||
|
MINIO_SECRET_KEY=cannaiq-secret
|
||||||
|
MINIO_BUCKET=cannaiq
|
||||||
|
MINIO_USE_SSL=false
|
||||||
|
```
|
||||||
|
|
||||||
|
### Cannabrands Bucket
|
||||||
|
|
||||||
|
| Setting | Value |
|
||||||
|
|------------|------------------------------------------|
|
||||||
|
| Bucket | cannabrands |
|
||||||
|
| Access Key | cannabrands-app |
|
||||||
|
| Secret Key | cdbdcd0c7b6f3994d4ab09f68eaff98665df234f |
|
||||||
|
|
||||||
|
## Kubernetes Secrets
|
||||||
|
|
||||||
|
Create secrets in the `cannaiq` namespace:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Database
|
||||||
|
kubectl create secret generic db-credentials -n cannaiq \
|
||||||
|
--from-literal=DATABASE_URL='postgres://cannaiq:SpDyCannaIQ2024@10.100.6.50:5432/cannaiq'
|
||||||
|
|
||||||
|
# Redis
|
||||||
|
kubectl create secret generic redis-credentials -n cannaiq \
|
||||||
|
--from-literal=REDIS_URL='redis://:SpDyR3d1s2024!@10.100.9.50:6379'
|
||||||
|
|
||||||
|
# MinIO
|
||||||
|
kubectl create secret generic minio-credentials -n cannaiq \
|
||||||
|
--from-literal=MINIO_ACCESS_KEY='cannaiq-app' \
|
||||||
|
--from-literal=MINIO_SECRET_KEY='cannaiq-secret'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Network
|
||||||
|
|
||||||
|
All services are on the `10.100.x.x` internal network:
|
||||||
|
|
||||||
|
| Service | IP | Port |
|
||||||
|
|------------|--------------|------|
|
||||||
|
| PostgreSQL | 10.100.6.50 | 5432 |
|
||||||
|
| Redis | 10.100.9.50 | 6379 |
|
||||||
|
| MinIO | 10.100.9.80 | 9000 |
|
||||||
|
| Registry | 10.100.9.70 | 5000 |
|
||||||
Reference in New Issue
Block a user