chore: update k8s deploy config for local Minikube dev environment
- add eventrt-certs-secret.sh helper script for creating cert secret - update configmap: use K8s service DNS names for mongodb and jaeger - switch deploy_env to development and image to local eventrt:v1 - add explicit command entrypoint to deployment manifest - update mongodb credentials to match local dev setup
This commit is contained in:
parent
582a64ad20
commit
04d81cedce
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Create the eventrt client certificate secret.
|
||||||
|
# Run this script from the directory that contains the three cert files,
|
||||||
|
# or adjust the paths below to point at the actual files.
|
||||||
|
#
|
||||||
|
# Expected files (generated during RabbitMQ TLS setup):
|
||||||
|
# ca_certificate.pem
|
||||||
|
# eventrt_client_cert.pem
|
||||||
|
# eventrt_client_key.pem
|
||||||
|
|
||||||
|
kubectl create secret generic eventrt-certs \
|
||||||
|
--from-file=ca_certificate.pem=./ca_certificate.pem \
|
||||||
|
--from-file=eventrt_client_cert.pem=./eventrt_client_cert.pem \
|
||||||
|
--from-file=eventrt_client_key.pem=./eventrt_client_key.pem
|
||||||
|
|
@ -17,9 +17,9 @@ data:
|
||||||
port: 5671
|
port: 5671
|
||||||
|
|
||||||
mongodb:
|
mongodb:
|
||||||
host: "192.168.1.101"
|
host: "mongodb-service"
|
||||||
port: 27017
|
port: 27017
|
||||||
user: "coslight"
|
user: "admin"
|
||||||
password: "" # injected via env MONGODB_PASSWORD
|
password: "" # injected via env MONGODB_PASSWORD
|
||||||
database: "eventdb"
|
database: "eventdb"
|
||||||
auth_db: "admin"
|
auth_db: "admin"
|
||||||
|
|
@ -38,8 +38,8 @@ data:
|
||||||
service_addr: ":8081"
|
service_addr: ":8081"
|
||||||
service_name: "eventRT"
|
service_name: "eventRT"
|
||||||
secret_key: "" # injected via env SERVICE_SECRET_KEY
|
secret_key: "" # injected via env SERVICE_SECRET_KEY
|
||||||
deploy_env: "production"
|
deploy_env: "development"
|
||||||
|
|
||||||
otel:
|
otel:
|
||||||
endpoint: "jaeger:4318"
|
endpoint: "jaeger-service:4318"
|
||||||
insecure: true
|
insecure: true
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: eventrt
|
- name: eventrt
|
||||||
image: coslight/eventrt:latest
|
image: eventrt:v1
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
command: ["/app/eventrt"]
|
||||||
args:
|
args:
|
||||||
- "-eventRT_config_dir=/app/configs"
|
- "-eventRT_config_dir=/app/configs"
|
||||||
- "-eventRT_config_name=config"
|
- "-eventRT_config_name=config"
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,5 @@ metadata:
|
||||||
name: eventrt-secret
|
name: eventrt-secret
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
mongodb-password: "coslight@tj"
|
mongodb-password: "coslight"
|
||||||
secret-key: "eventrt_key"
|
secret-key: "eventrt_key"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue