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
  • Loading branch information
sre-bot committed Mar 23, 2020
1 parent 0c0b8ef commit 989beee
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 989beee

Please sign in to comment.