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
|
||||
|
||||
mongodb:
|
||||
host: "192.168.1.101"
|
||||
host: "mongodb-service"
|
||||
port: 27017
|
||||
user: "coslight"
|
||||
user: "admin"
|
||||
password: "" # injected via env MONGODB_PASSWORD
|
||||
database: "eventdb"
|
||||
auth_db: "admin"
|
||||
|
|
@ -38,8 +38,8 @@ data:
|
|||
service_addr: ":8081"
|
||||
service_name: "eventRT"
|
||||
secret_key: "" # injected via env SERVICE_SECRET_KEY
|
||||
deploy_env: "production"
|
||||
deploy_env: "development"
|
||||
|
||||
otel:
|
||||
endpoint: "jaeger:4318"
|
||||
endpoint: "jaeger-service:4318"
|
||||
insecure: true
|
||||
|
|
|
|||
|
|
@ -16,8 +16,9 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: eventrt
|
||||
image: coslight/eventrt:latest
|
||||
image: eventrt:v1
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["/app/eventrt"]
|
||||
args:
|
||||
- "-eventRT_config_dir=/app/configs"
|
||||
- "-eventRT_config_name=config"
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ metadata:
|
|||
name: eventrt-secret
|
||||
type: Opaque
|
||||
stringData:
|
||||
mongodb-password: "coslight@tj"
|
||||
mongodb-password: "coslight"
|
||||
secret-key: "eventrt_key"
|
||||
|
|
|
|||
Loading…
Reference in New Issue