grepthat opened a new issue #16362:
URL: https://github.com/apache/airflow/issues/16362


   Apache Airflow version: master
   
   Kubernetes version: v1.19.3
   
   Environment: Ubuntu 18.04 Server
   
   I'm using Airflow with the **KubernetesExecutor**. Certain tasks create a 
k8s container with status **"ContainerCannotRun".** Looking at the kubelet logs 
I see `"hostname for pod:"XX" was longer than 63. Truncated hostname to :"XY"`
   
   ```bash
   ❯ kubectl get pods -n airflow
   NAME                                                                         
                      READY   STATUS               RESTARTS   AGE
   
202103x8projectxyzsubsetabcsinglesequenceprocessingtgsurveyset0.a9f22a70681c4c9aaa16f04602a9f350
   0/1     ContainerCannotRun   0          13h
   
202103x8projectxyzsubsetabcsinglesequenceprocessingtgsurveyset0.b0a2134828c14a0fb7e63a3d4bfd6f0c
   0/1     ContainerCannotRun   0          13h
   
   ❯ sudo journalctl -u kubelet -f 
   Jun 10 06:06:22 atremata.lan kubelet[2856]: E0610 06:06:22.483466    2856 
kubelet_pods.go:403] hostname for 
pod:"202104usadrycreektgsurveyset000ex003tsmoothingquadadjustere8422.4fbe91ce276048ea8d99b74ffdbda909"
 was longer than 63. Truncated hostname to 
:"202104usadrycreektgsurveyset000ex003tsmoothingquadadjustere8422"
   ```


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