diff --git a/charts/tidb-cluster/templates/tidb-initializer-job.yaml b/charts/tidb-cluster/templates/tidb-initializer-job.yaml index f5dab4c2e6..e792dc8037 100644 --- a/charts/tidb-cluster/templates/tidb-initializer-job.yaml +++ b/charts/tidb-cluster/templates/tidb-initializer-job.yaml @@ -44,6 +44,8 @@ spec: fi done echo "info: successfully connected to $host:$port, able to initialize TiDB now" + resources: +{{ toYaml .Values.tidb.initializer.resources | indent 10 }} containers: - name: mysql-client image: {{ .Values.mysqlClient.image }} diff --git a/charts/tidb-cluster/values.yaml b/charts/tidb-cluster/values.yaml index bd327f2446..b4890f8a7e 100644 --- a/charts/tidb-cluster/values.yaml +++ b/charts/tidb-cluster/values.yaml @@ -448,12 +448,12 @@ tidb: initializer: resources: {} - # limits: - # cpu: 100m - # memory: 100Mi - # requests: - # cpu: 100m - # memory: 100Mi + # limits: + # cpu: 100m + # memory: 100Mi + # requests: + # cpu: 100m + # memory: 100Mi # tidb plugin configuration plugin: