Files
cloud-services/deploy/cec-prd-cluster/cost.yaml
Chris Rai 27fe5af164 cost service: update estimates from migration plan v1.1
- Platform base: 80 cores / 544GB RAM (from migration plan)
- Cloud rates: $0.35/core-hr, $0.10/GB-hr, $17/15min managed services
- On-prem rates: $0.015/core-hr, $0.004/GB-hr, $1.50/15min
- Based on ~$1M/year Azure spend, ~92% savings with on-prem
- Updated README with migration plan references
2026-02-05 10:30:09 -05:00

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:v12
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