-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support adding additional pod annotations for PD/TiKV/TiDB #500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
OK. I've add generated deepcopy file, andd add a issue for tracing e2e cases.#505. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-e2e-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-e2e-tests |
add a release note like this pr does: #479 |
/run-e2e-tests |
OK. I've refined the PR description. |
What problem does this PR solve?
Support adding additional pod annotations for PD/TiKV/TiDB.
We could add pod annotation
fluentbit.io/parser: pingcap_log
for PD/TiKV/TiDB pod, so fluentbit knows that the pod log should be processed using the pre-defined parser calledpingcap_log
.refer: https://docs.fluentbit.io/manual/filter/kubernetes#kubernetes-annotations
What is changed and how it works?
At the server side,
Annotations
field was added in TidbClusterSpec's Pod Spec (PDSpec, TiKVSpec and TiDBSpec). If Annotations field is not empty, the PD/TiKV/TiDB statefulset will add the annotation to PodTemplateSpec's Annotations field.At the client side, you could add additional annotations in Helm values file
charts/tidb-cluster/values.yaml
.Check List
Tests
The Unit and E2E test cases will be tracked in issue #505.
Code changes
Does this PR introduce a user-facing change?: