Compare commits

..

4 Commits

11 changed files with 14 additions and 11 deletions

View File

@@ -39,6 +39,7 @@ spec:
port: {{ .Values.service.port }} port: {{ .Values.service.port }}
initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }} initialDelaySeconds: {{ .Values.probe.initialDelaySeconds }}
periodSeconds: {{ .Values.probe.periodSeconds }} periodSeconds: {{ .Values.probe.periodSeconds }}
timeoutSeconds: {{ .Values.probe.timeoutSeconds | default 5 }}
failureThreshold: {{ .Values.probe.failureThreshold }} failureThreshold: {{ .Values.probe.failureThreshold }}
livenessProbe: livenessProbe:
httpGet: httpGet:
@@ -46,6 +47,7 @@ spec:
port: {{ .Values.service.port }} port: {{ .Values.service.port }}
initialDelaySeconds: {{ add .Values.probe.initialDelaySeconds 60 }} initialDelaySeconds: {{ add .Values.probe.initialDelaySeconds 60 }}
periodSeconds: {{ .Values.probe.periodSeconds }} periodSeconds: {{ .Values.probe.periodSeconds }}
timeoutSeconds: {{ .Values.probe.timeoutSeconds | default 5 }}
failureThreshold: {{ .Values.probe.failureThreshold }} failureThreshold: {{ .Values.probe.failureThreshold }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}

View File

@@ -14,6 +14,7 @@ probe:
path: /actuator/health path: /actuator/health
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5 # /actuator/health gọi DB/Redis/Kafka nên >1s, tránh probe timeout
failureThreshold: 30 # cho phép start chậm (Liquibase migrate) failureThreshold: 30 # cho phép start chậm (Liquibase migrate)
# Map env tự do — KHÔNG fix tên (mỗi service tên env khác nhau) # Map env tự do — KHÔNG fix tên (mỗi service tên env khác nhau)

View File

@@ -36,7 +36,7 @@ metadata:
namespace: dbiz-dev namespace: dbiz-dev
subsets: subsets:
- addresses: - addresses:
- ip: 192.168.110.72 - ip: 192.168.110.76
ports: ports:
- port: 6379 - port: 6379
--- ---

View File

@@ -50,7 +50,7 @@ prometheus:
cpu: 200m cpu: 200m
memory: 512Mi memory: 512Mi
limits: limits:
memory: 1Gi memory: 2Gi
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Alertmanager # Alertmanager

View File

@@ -38,7 +38,7 @@ env:
SPRING_LIQUIBASE_CHANGE_LOG: "classpath:db/changelog/db.changelog-master.xml" SPRING_LIQUIBASE_CHANGE_LOG: "classpath:db/changelog/db.changelog-master.xml"
SPRING_LIQUIBASE_DEFAULT_SCHEMA: "DBIZ_PLATFORM" SPRING_LIQUIBASE_DEFAULT_SCHEMA: "DBIZ_PLATFORM"
# Redis / Valkey # Redis / Valkey
SPRING_DATA_REDIS_HOST: "192.168.110.72" SPRING_DATA_REDIS_HOST: "192.168.110.76"
# Kafka # Kafka
SPRING_KAFKA_BOOTSTRAP_SERVERS: "192.168.110.70:9092" SPRING_KAFKA_BOOTSTRAP_SERVERS: "192.168.110.70:9092"
# S3 (SeaweedFS) # S3 (SeaweedFS)

View File

@@ -36,7 +36,7 @@ metadata:
namespace: dbiz-prod namespace: dbiz-prod
subsets: subsets:
- addresses: - addresses:
- ip: 192.168.110.72 - ip: 192.168.110.76
ports: ports:
- port: 6379 - port: 6379
--- ---

View File

@@ -1,5 +1,5 @@
secretName: platform-api-secret secretName: platform-api-secret
replicaCount: 2 # provisioning PDB → KHÔNG scale replicaCount: 0 # provisioning PDB → KHÔNG scale
image: image:
repository: renolation/dbiz-platform-api repository: renolation/dbiz-platform-api
@@ -38,7 +38,7 @@ env:
SPRING_LIQUIBASE_CHANGE_LOG: "classpath:db/changelog/db.changelog-master.xml" SPRING_LIQUIBASE_CHANGE_LOG: "classpath:db/changelog/db.changelog-master.xml"
SPRING_LIQUIBASE_DEFAULT_SCHEMA: "DBIZ_PLATFORM" SPRING_LIQUIBASE_DEFAULT_SCHEMA: "DBIZ_PLATFORM"
# Redis / Valkey # Redis / Valkey
SPRING_DATA_REDIS_HOST: "192.168.110.72" SPRING_DATA_REDIS_HOST: "192.168.110.76"
# Kafka # Kafka
SPRING_KAFKA_BOOTSTRAP_SERVERS: "192.168.110.70:9092" SPRING_KAFKA_BOOTSTRAP_SERVERS: "192.168.110.70:9092"
# S3 (SeaweedFS) # S3 (SeaweedFS)

View File

@@ -1,5 +1,5 @@
secretName: tenant-api-secret secretName: tenant-api-secret
replicaCount: 2 replicaCount: 0
image: image:
repository: renolation/dbiz-tenant-api repository: renolation/dbiz-tenant-api

View File

@@ -36,7 +36,7 @@ metadata:
namespace: dbiz-staging namespace: dbiz-staging
subsets: subsets:
- addresses: - addresses:
- ip: 192.168.110.72 - ip: 192.168.110.76
ports: ports:
- port: 6379 - port: 6379
--- ---

View File

@@ -1,5 +1,5 @@
secretName: platform-api-secret secretName: platform-api-secret
replicaCount: 2 # provisioning PDB → KHÔNG scale replicaCount: 0 # provisioning PDB → KHÔNG scale
image: image:
repository: renolation/dbiz-platform-api repository: renolation/dbiz-platform-api
@@ -38,7 +38,7 @@ env:
SPRING_LIQUIBASE_CHANGE_LOG: "classpath:db/changelog/db.changelog-master.xml" SPRING_LIQUIBASE_CHANGE_LOG: "classpath:db/changelog/db.changelog-master.xml"
SPRING_LIQUIBASE_DEFAULT_SCHEMA: "DBIZ_PLATFORM" SPRING_LIQUIBASE_DEFAULT_SCHEMA: "DBIZ_PLATFORM"
# Redis / Valkey # Redis / Valkey
SPRING_DATA_REDIS_HOST: "192.168.110.72" SPRING_DATA_REDIS_HOST: "192.168.110.76"
# Kafka # Kafka
SPRING_KAFKA_BOOTSTRAP_SERVERS: "192.168.110.70:9092" SPRING_KAFKA_BOOTSTRAP_SERVERS: "192.168.110.70:9092"
# S3 (SeaweedFS) # S3 (SeaweedFS)

View File

@@ -1,5 +1,5 @@
secretName: tenant-api-secret secretName: tenant-api-secret
replicaCount: 2 replicaCount: 0
image: image:
repository: renolation/dbiz-tenant-api repository: renolation/dbiz-tenant-api