From 773aadbc34b71edfe81124bc4cf3f196f6c08e68 Mon Sep 17 00:00:00 2001 From: xyctruth <398041993@qq.com> Date: Fri, 18 Feb 2022 15:00:20 +0800 Subject: [PATCH 1/3] update charts parameters and docs --- charts/README.md | 56 ++++++++++++++++++++++++++++++---------------- charts/values.yaml | 12 +++++----- 2 files changed, 42 insertions(+), 26 deletions(-) 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..ef1717f 100644 --- a/charts/values.yaml +++ b/charts/values.yaml @@ -26,12 +26,10 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" -podSecurityContext: - {} +podSecurityContext: {} # fsGroup: 2000 -securityContext: - {} +securityContext: {} # capabilities: # drop: # - ALL @@ -47,9 +45,9 @@ resources: autoscaling: enabled: false minReplicas: 1 - maxReplicas: 100 + maxReplicas: 10 targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 nodeSelector: {} @@ -64,7 +62,7 @@ service: grpc: 36790 ingress: - enabled: false + enabled: true className: "nginx" annotations: {} From dae92f69a74dc69df5794f429c51f562681a497e Mon Sep 17 00:00:00 2001 From: xyctruth <398041993@qq.com> Date: Fri, 18 Feb 2022 15:00:34 +0800 Subject: [PATCH 2/3] update charts parameters and docs --- charts/values.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/charts/values.yaml b/charts/values.yaml index ef1717f..1eab870 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 From 8a9f9e06fcc44dd031066beacd097c5dd7280260 Mon Sep 17 00:00:00 2001 From: xyctruth <398041993@qq.com> Date: Fri, 18 Feb 2022 15:03:04 +0800 Subject: [PATCH 3/3] default ingress enabled:false --- charts/values.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/values.yaml b/charts/values.yaml index 1eab870..c29e244 100644 --- a/charts/values.yaml +++ b/charts/values.yaml @@ -37,13 +37,6 @@ resources: cpu: 200m memory: 200Mi -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 10 - targetCPUUtilizationPercentage: 80 - targetMemoryUtilizationPercentage: 80 - nodeSelector: {} tolerations: [] @@ -56,8 +49,15 @@ service: http: 36789 grpc: 36790 +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 10 + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 + ingress: - enabled: true + enabled: false className: "nginx" annotations: {}