diff --git a/charts/README.md b/charts/README.md index e0833d6..2af1863 100644 --- a/charts/README.md +++ b/charts/README.md @@ -1,35 +1,53 @@ -# DTM +# DTM charts ## Usage -To install the dtm chart: +Install the dtm chart: - helm install --create-namespace -n dtm-system dtm . +```bash +helm install --create-namespace -n dtm-system dtm ./charts +``` -To install the dtm chart: +Upgrade the dtm chart: - helm upgrade -n dtm-system dtm . +```bash +helm upgrade -n dtm-system dtm ./charts +``` -To uninstall the chart: +Uninstall the chart: - helm delete -n dtm-system dtm +```bash +helm delete -n dtm-system dtm +``` ## Parameters ### Configuration parameters -| Key | Description | Value | -| ------------- | -------------------------------------------------- | ----- | -| configuration | DTM configuration. Specify content for config.yaml | "" | +| Key | Description | Value | +|-----------------|---------------------------------------------------------------------------------------------------------------------------------------|-------| +| `configuration` | DTM configuration. Specify content for `config.yaml`, ref: [sample config](https://github.com/dtm-labs/dtm/blob/main/conf.sample.yml) | `""` | + + + +### Autoscaling Parameters + +| Name | Description | Value | +|-------------------------------------------------|-------------------------------------------|---------| +| `autoscaling.enabled` | Enable Horizontal POD autoscaling for DTM | `false` | +| `autoscaling.minReplicas` | Minimum number of DTM replicas | `1` | +| `autoscaling.maxReplicas` | Maximum number of DTM replicas | `10` | +| `autoscaling.targetCPUUtilizationPercentage` | Target CPU utilization percentage | `80` | +| `autoscaling.targetMemoryUtilizationPercentage` | Target Memory utilization percentage | `80` | ### Ingress parameters -| Key | Description | Value | -| ---------------------------- | ------------------------------------------------------------------------------- | ----------------- | -| ingress.enabled | Enable ingress record generation for DTM | false | -| ingress.className | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | "nginx" | -| ingress.annotations | To enable certificate autogeneration, place here your cert-manager annotations. | {} | -| ingress.hosts.host | Default host for the ingress record. | "your-domain.com" | -| ingress.hosts.paths.path | Default path for the ingress record | "/" | -| ingress.hosts.paths.pathType | Ingress path type | "Prefix" | -| ingress.tls | Enable TLS configuration for the host defined at ingress.hostname parameter | [] | +| Key | Description | Value | +|--------------------------------|----------------------------------------------------------------------------------|---------------------| +| `ingress.enabled` | Enable ingress record generation for DTM | `false` | +| `ingress.className` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `"nginx"` | +| `ingress.annotations` | To enable certificate auto generation, place here your cert-manager annotations. | `{}` | +| `ingress.hosts.host` | Default host for the ingress record. | `"your-domain.com"` | +| `ingress.hosts.paths.path` | Default path for the ingress record | `"/"` | +| `ingress.hosts.paths.pathType` | Ingress path type | `"Prefix"` | +| `ingress.tls` | Enable TLS configuration for the host defined at ingress.hostname parameter | `[]` | diff --git a/charts/values.yaml b/charts/values.yaml index cd5827e..c29e244 100644 --- a/charts/values.yaml +++ b/charts/values.yaml @@ -3,15 +3,10 @@ # Declare variables to be passed into your templates. # DTM configuration. Specify content for config.yaml +# ref: https://github.com/dtm-labs/dtm/blob/main/conf.sample.yml configuration: |- Store: # specify which engine to store trans status Driver: 'boltdb' # default store engine -# Store: -# Driver: mysql # 此处以 mysql 为例,其他数据库可自行替换 -# Host: dtm-db # 此处设置为集群外部的数据库 host,或者集群内部的数据库 svc-dns -# Port: 3306 -# User: root -# Password: '' # replicaCount Number of dtm replicas to deploy replicaCount: 1 @@ -26,12 +21,10 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" -podSecurityContext: - {} +podSecurityContext: {} # fsGroup: 2000 -securityContext: - {} +securityContext: {} # capabilities: # drop: # - ALL @@ -44,13 +37,6 @@ resources: cpu: 200m memory: 200Mi -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - nodeSelector: {} tolerations: [] @@ -63,6 +49,13 @@ service: http: 36789 grpc: 36790 +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 10 + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 + ingress: enabled: false className: "nginx"