Add cost service for per-VIN cost estimation
This commit is contained in:
@@ -12,6 +12,7 @@ resources:
|
||||
- services/jetfire/
|
||||
- services/optimus/
|
||||
- services/ota/
|
||||
- services/cost/
|
||||
|
||||
labels:
|
||||
- pairs:
|
||||
|
||||
88
deploy/overlays/development/services/cost/deployment.yaml
Normal file
88
deploy/overlays/development/services/cost/deployment.yaml
Normal file
@@ -0,0 +1,88 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cost
|
||||
namespace: cloud-services
|
||||
labels:
|
||||
app: cost
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: cost
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: cost
|
||||
spec:
|
||||
containers:
|
||||
- name: cost
|
||||
image: localhost:32000/cost:v1
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 8077
|
||||
name: http
|
||||
- containerPort: 11011
|
||||
name: health
|
||||
env:
|
||||
# Local clickhouse (mini cluster)
|
||||
- name: CLICKHOUSE_HOST
|
||||
value: chi-cloud-dev-cloud-dev-0-0.clickhouse.svc.cluster.local
|
||||
- name: CLICKHOUSE_PORT
|
||||
value: "9000"
|
||||
- name: CLICKHOUSE_USER
|
||||
value: cloud_dev
|
||||
- name: CLICKHOUSE_PASS
|
||||
value: cloud_dev_password
|
||||
- name: CLICKHOUSE_DB
|
||||
value: default
|
||||
# Remote clickhouse (dev-cluster-1) - for reading vehicle data
|
||||
- name: REMOTE_CLICKHOUSE_HOST
|
||||
value: "" # TODO: Set dev-cluster clickhouse endpoint
|
||||
- name: REMOTE_CLICKHOUSE_PORT
|
||||
value: "9000"
|
||||
- name: REMOTE_CLICKHOUSE_USER
|
||||
value: ""
|
||||
- name: REMOTE_CLICKHOUSE_PASS
|
||||
value: ""
|
||||
- name: REMOTE_CLICKHOUSE_DB
|
||||
value: default
|
||||
# Collector settings
|
||||
- name: COLLECTOR_INTERVAL_MINUTES
|
||||
value: "15"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: cloud-common-config
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
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: cloud-services
|
||||
spec:
|
||||
selector:
|
||||
app: cost
|
||||
ports:
|
||||
- port: 8077
|
||||
targetPort: 8077
|
||||
name: http
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
Reference in New Issue
Block a user