Junnplus commented on a change in pull request #13516:
URL: https://github.com/apache/airflow/pull/13516#discussion_r553165330



##########
File path: airflow/kubernetes/kube_client.py
##########
@@ -58,6 +58,11 @@ def _get_client_with_patched_configuration(cfg: 
Optional[Configuration]) -> clie
         else:
             return client.CoreV1Api()
 
+    def _disable_verity_ssl() -> None:
+        configuration = client.Configuration()
+        configuration.verify_ssl = False
+        client.Configuration.set_default(configuration)

Review comment:
       when use `in_cluster` mode, Python k8s client will load incluster 
config, but certificate bundle 
`/var/run/secrets/kubernetes.io/serviceaccount/ca.crt` is invalid on alicloud.
   set `verify_ssl` can skip verifying SSL certificate
   
https://github.com/kubernetes-client/python/blob/master/kubernetes/client/configuration.py#L130




----------------------------------------------------------------
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.

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


Reply via email to