dingguotao opened a new pull request, #29519:
URL: https://github.com/apache/flink/pull/29519

   ## What is the purpose of the change
   
   Add a config option to control `enableServiceLinks` of the JobManager and 
TaskManager pods. With many Flink clusters in one namespace, the Service 
environment variables injected by Kubernetes slow down the pod startup. See 
FLINK-41025.
   
   ## Brief change log
   
   - Add `kubernetes.pod.service-links.enabled` (Boolean, no default value).
   - `InitJobManagerDecorator` / `InitTaskManagerDecorator` overwrite 
`enableServiceLinks` of the pod spec only when the option is configured; 
otherwise the pod template value or the Kubernetes default applies.
   - Document the option and add `enableServiceLinks` to the "Fields 
Overwritten by Flink" table (en/zh).
   
   ## Verifying this change
   
   - `InitJobManagerDecoratorTest` / `InitTaskManagerDecoratorTest`: the field 
is not set by default, and is set when the option is configured.
   - `DecoratorWithPodTemplateTestBase`: the value from the pod template is 
kept, and is overwritten when the option is configured.
   
   ## Does this pull request potentially affect one of the following parts
   
   - Dependencies: no
   - The public API: no
   - The serializers: no
   - The runtime per-record code paths: no
   - Anything that affects deployment or recovery: yes (Kubernetes pod spec, 
only when the option is configured)
   - The S3 file system connector: no
   
   ## Documentation
   
   - Does this pull request introduce a new feature? yes
   - If yes, how is the feature documented? docs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to