# Default values for dashboard-service
# This is a YAML-formatted file.
# Declare variables to be passed into templates.

replicaCount: 2

image:
  repository: erp-dashboard-service
  tag: latest
  pullPolicy: IfNotPresent

service:
  type: ClusterIP
  port: 8086
  nodePort: 30086

ingress:
  enabled: true
  className: nginx
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/proxy-body-size: "10m"
  hosts:
    - host: dashboard.erpzbbh.cn
      paths:
        - path: /
          pathType: Prefix

resources:
  limits:
    cpu: 500m
    memory: 1Gi
  requests:
    cpu: 250m
    memory: 512Mi

livenessProbe:
  httpGet:
    path: /actuator/health/liveness
    port: 8086
  initialDelaySeconds: 60
  periodSeconds: 10
  timeoutSeconds: 5
  failureThreshold: 3

readinessProbe:
  httpGet:
    path: /actuator/health/readiness
    port: 8086
  initialDelaySeconds: 30
  periodSeconds: 5
  timeoutSeconds: 3
  failureThreshold: 3

config:
  db:
    host: "111.229.80.149"
    port: 3306
    name: "erp_db"
  redis:
    host: "111.229.80.149"
    port: 6379
  nacos:
    host: "43.226.44.101"
    port: 8848
    namespace: "public"

secrets:
  db:
    user: "root"
    password: "nihao588+"
  redis:
    password: "Y(@r5tGk9$Lp2"

autoscaling:
  enabled: true
  minReplicas: 2
  maxReplicas: 5
  targetCPUUtilizationPercentage: 70
  targetMemoryUtilizationPercentage: 80
