Skip to content

Commit

Permalink
Allocate tidb.initializer.resources to initcontainer in tidb initiali…
Browse files Browse the repository at this point in the history
…zer job (#1938)

Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
  • Loading branch information
3 people committed Mar 23, 2020
1 parent 979e87c commit ea6b6a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions charts/tidb-cluster/templates/tidb-initializer-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 6 additions & 6 deletions charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ea6b6a7

Please sign in to comment.