- Updated cost model to show: (Platform Base) + (Per-VIN × VINs) - Platform base: 176 cores / 896GB RAM (Kafka, ClickHouse, MongoDB, Redis, PostgreSQL, gateway, monitoring) - Per-VIN marginal: 50mc / 82MB per vehicle - Added RESOURCE USAGE MODEL and COST FORMULA sections to report - Added CPU (mc) and RAM (MB) columns to TOP COST VEHICLES table - Updated README with new report output - virtual-vehicle: documented Vault cert TTL error troubleshooting
87 lines
2.1 KiB
YAML
87 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cost
|
|
namespace: default
|
|
labels:
|
|
app: cost
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: cost
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: cost
|
|
spec:
|
|
containers:
|
|
- name: cost
|
|
image: fiskercloud.azurecr.io/cost:v11
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8077
|
|
name: http
|
|
- containerPort: 11011
|
|
name: health
|
|
env:
|
|
- name: CLICKHOUSE_HOST
|
|
value: clickhouse.clickhouse.svc.cluster.local
|
|
- name: CLICKHOUSE_PORT
|
|
value: "9000"
|
|
- name: CLICKHOUSE_USER
|
|
value: default
|
|
- name: CLICKHOUSE_PASS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: cloud
|
|
key: CLICKHOUSE_PASS
|
|
- name: CLICKHOUSE_DB
|
|
value: default
|
|
- name: REMOTE_CLICKHOUSE_HOST
|
|
value: clickhouse.clickhouse.svc.cluster.local
|
|
- name: REMOTE_CLICKHOUSE_PORT
|
|
value: "9000"
|
|
- name: REMOTE_CLICKHOUSE_USER
|
|
value: default
|
|
- name: REMOTE_CLICKHOUSE_PASS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: cloud
|
|
key: CLICKHOUSE_PASS
|
|
- name: REMOTE_CLICKHOUSE_DB
|
|
value: default
|
|
- name: COLLECTOR_INTERVAL_MINUTES
|
|
value: "15"
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 256Mi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /liveness
|
|
port: 11011
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readiness
|
|
port: 11011
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cost
|
|
namespace: default
|
|
spec:
|
|
selector:
|
|
app: cost
|
|
ports:
|
|
- port: 8077
|
|
targetPort: 8077
|
|
name: http
|