63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jetfire
|
|
namespace: cloud-services
|
|
labels:
|
|
app: jetfire
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: jetfire
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jetfire
|
|
spec:
|
|
containers:
|
|
- name: jetfire
|
|
image: localhost:32000/jetfire:v1
|
|
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_FEATURE_TABLE
|
|
value: feature_table
|
|
- name: CLICKHOUSE_VEHICLE_SIGNAL_TABLE
|
|
value: vehicle_signal
|
|
envFrom:
|
|
- configMapRef:
|
|
name: cloud-common-config
|
|
- secretRef:
|
|
name: cloud-db-credentials
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
limits:
|
|
memory: 2Gi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /liveness
|
|
port: 11011
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readiness
|
|
port: 11011
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|