# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

# Default values for hertzbeat.

manager:
  image:
    repository: apache/hertzbeat
    pullPolicy: IfNotPresent
    # Overrides the image tag whose default is the chart appVersion.
    tag: ""
  account:
    username: "admin"
    password: "hertzbeat"
  jwtSecretKey: "CyaFv0bwq2Eik0jdrKUtsA6dx3sDJeFV143R
    LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9
    8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5
    dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp"
  podAnnotations: {}
  podSecurityContext: {}
  securityContext: {}
  resources: {}
  nodeSelector: {}
  tolerations: []
  affinity: {}

collector:
  image:
    repository: apache/hertzbeat-collector
    pullPolicy: IfNotPresent
    # Overrides the image tag whose default is the chart appVersion.
    tag: ""
  replicaCount: 1
  autoscaling:
    enabled: false
    minReplicas: 1
    maxReplicas: 20
    targetCPUUtilizationPercentage: 80
    targetMemoryUtilizationPercentage: 80

  podAnnotations: {}
  podSecurityContext: {}
  securityContext: {}
  resources: {}
  nodeSelector: {}
  tolerations: []
  affinity: {}

database:
  image:
    repository: postgres
    pullPolicy: IfNotPresent
    # Overrides the image tag whose default is the chart appVersion.
    tag: "15"
  timezone: "Asia/Shanghai"
  rootPassword: "123456"
  persistence:
    enabled: true
    existingClaim: ""
    storageClass: ""
    subPath: ""
    accessMode: ReadWriteOnce
    size: 4Gi
    annotations: {}
    resourcePolicy: "keep"

  podAnnotations: {}
  podSecurityContext: {}
  securityContext: {}
  resources: {}
  nodeSelector: {}
  tolerations: []
  affinity: {}

tsdb:
  image:
    repository: victoriametrics/victoria-metrics
    pullPolicy: IfNotPresent
    # Overrides the image tag whose default is the chart appVersion.
    tag: "v1.95.1"
  timezone: "Asia/Shanghai"
  persistence:
    enabled: true
    existingClaim: ""
    storageClass: ""
    subPath: ""
    accessMode: ReadWriteOnce
    size: 4Gi
    annotations: {}
    resourcePolicy: "keep"

  podAnnotations: {}
  podSecurityContext: {}
  securityContext: {}
  resources: {}
  nodeSelector: {}
  tolerations: []
  affinity: {}

# Expose Network
expose:
  # Set how to expose the service. Set the type as "ClusterIP","NodePort","LoadBalancer" or "Ingress"
  # and fill the information in the corresponding section
  type: Ingress
  clusterIP:
    ports:
      # The service port Harbor listens on when serving HTTP
      port: 1157
  nodePort:
    ports:
      # The service port Harbor listens on when serving HTTP
      port: 1157
      # The node port Harbor listens on when serving HTTP
      nodePort: 31157
  loadBalancer:
    # Set the IP if the LoadBalancer supports assigning IP
    ip: ""
    ports:
      # The service port Harbor listens on when serving HTTP
      port: 1157
    sourceRanges: []
  ingress:
    enabled: true
    ingressClassName: ""
    host: "hertzbeat.domain"
    annotations: {}
    tls:
      enabled: true
      secretName: your-tls-secret
