You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/07 08:04:05 UTC

[GitHub] [airflow] Junnplus commented on a change in pull request #13516: Add verify_ssl config for kubernetes

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:
users@infra.apache.org