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 2020/07/29 17:52:47 UTC
[GitHub] [airflow] arkady-emelyanov opened a new issue #10045: KubernetesExecutor/pod_template_file: PodGenerator should set `restartPolicy: Never`
arkady-emelyanov opened a new issue #10045:
URL: https://github.com/apache/airflow/issues/10045
**Apache Airflow version**: 1.10.11
**Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
```
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-16T00:04:31Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
```
**Environment**:
- **Cloud provider or hardware configuration**: `minikube version: v1.12.1`
**What happened**:
When using `pod_template_file` without specifying `restartPolicy` in spec, `restartPolicy` receives value `Always` (which is default value for Kubernetes), which results `CrashLoopBackOff` for task pod (Kubernetes tries to restart pod upon completion). Explicitly setting up `restartPolicy: Never` in `pod_template_file` manifest solves the issue.
**What you expected to happen**:
PodGenerator should explicitly set `restartPolicy: Never` when processing `pod_template_file`.
----------------------------------------------------------------
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
[GitHub] [airflow] himabindu07 commented on issue #10045: KubernetesExecutor/pod_template_file: PodGenerator should set restartPolicy: Never
Posted by GitBox <gi...@apache.org>.
himabindu07 commented on issue #10045:
URL: https://github.com/apache/airflow/issues/10045#issuecomment-788367281
I verified using 2.0.1 and not able to reproduceble, can you try it with Airflow 2.0.1
Thanks
----------------------------------------------------------------
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
[GitHub] [airflow] boring-cyborg[bot] commented on issue #10045: KubernetesExecutor/pod_template_file: PodGenerator should set `restartPolicy: Never`
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #10045:
URL: https://github.com/apache/airflow/issues/10045#issuecomment-665608164
Thanks for opening your first issue here! Be sure to follow the issue template!
----------------------------------------------------------------
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
[GitHub] [airflow] kaxil closed issue #10045: KubernetesExecutor/pod_template_file: PodGenerator should set restartPolicy: Never
Posted by GitBox <gi...@apache.org>.
kaxil closed issue #10045:
URL: https://github.com/apache/airflow/issues/10045
--
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
[GitHub] [airflow] arkady-emelyanov commented on issue #10045: KubernetesExecutor/pod_template_file: PodGenerator should set restartPolicy: Never
Posted by GitBox <gi...@apache.org>.
arkady-emelyanov commented on issue #10045:
URL: https://github.com/apache/airflow/issues/10045#issuecomment-791896468
@himabindu07 Don't have any running Airflow instance nearby, but I have checked to source code and it seems issue indeed has been resolved.
I think issue can be closed now.
----------------------------------------------------------------
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