You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ph0tonic (via GitHub)" <gi...@apache.org> on 2025/07/08 10:22:56 UTC
[D] ApiServer terminated with code 0 [airflow]
GitHub user Ph0tonic created a discussion: ApiServer terminated with code 0
### Official Helm Chart version
1.17.0 (latest released)
### Apache Airflow version
3.0.2
### Kubernetes Version
1.32.3
### Helm Chart configuration
```yaml
airflow:
apiSecretKeySecretName: airflow-webserver-secret-key-secret
# apache helm chart
useStandardNaming: true
images:
airflow:
repository: docker.gitlab.example.com/airflow-test/airflow
tag: latest
pullPolicy: Always
createUserJob:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
useHelmHooks: false
applyCustomEnv: false
ttlSecondsAfterFinished: null
migrateDatabaseJob:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
useHelmHooks: false
applyCustomEnv: false
jobAnnotations:
'argocd.argoproj.io/hook': Sync
securityContexts:
pod:
runAsNonRoot: true
runAsUser: 1001
seccompProfile:
type: RuntimeDefault
containers:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1001
seccompProfile:
type: RuntimeDefault
ingress:
apiServer:
enabled: true
host: airflow.example.com
ingressClassName: nginx
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: 'true'
hosts:
- name: airflow.example.com
tls:
enabled: true
tls:
enabled: true
logs:
persistence:
enabled: true
size: 50Gi
workers:
persistence:
size: 50Gi
resources:
limits:
memory: 2000Mi
requests:
cpu: 30m
memory: 2000Mi
logGroomerSidecar:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
kerberosSidecar:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
kerberosInitContainer:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
scheduler:
resources:
limits:
memory: 1Gi
requests:
cpu: 30m
memory: 1Gi
logGroomerSidecar:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
postgresql:
primary:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
_rpcServer:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
apiServer:
startupProbe:
timeoutSeconds: 60
periodSeconds: 60
readinessProbe:
initialDelaySeconds: 60
livenessProbe:
initialDelaySeconds: 60
resources:
limits:
memory: 2000Mi
requests:
cpu: 30m
memory: 2000Mi
triggerer:
persistence:
size: 10Gi
resources:
limits:
memory: 1010Mi
requests:
cpu: 30m
memory: 1010Mi
logGroomerSidecar:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
dags:
persistence:
enabled: false
gitSync:
enabled: true
repo: https://gitlab.example.com/airflow/airflow-test.git
branch: main
subPath: dags
credentialsSecret: git-credentials
securityContexts:
container:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1001
seccompProfile:
type: RuntimeDefault
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
dagProcessor:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
logGroomerSidecar:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
flower:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
statsd:
securityContexts:
pod:
runAsNonRoot: true
runAsUser: 1001
seccompProfile:
type: RuntimeDefault
containers:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1001
seccompProfile:
type: RuntimeDefault
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
pgbouncer:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
metricsExporterSidecar:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
data:
brokerUrlSecretName: airflow-redis-password-secret
redis:
passwordSecretName: airflow-redis-password-secret
securityContexts:
pod:
runAsNonRoot: true
runAsUser: 1001
seccompProfile:
type: RuntimeDefault
containers:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1001
seccompProfile:
type: RuntimeDefault
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
cleanup:
resources:
limits:
memory: 500Mi
requests:
cpu: 30m
memory: 500Mi
```
### Docker Image customizations
```Dockerfile
FROM docker.io/apache/airflow:3.0.2
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install apache-airflow-providers-standard~=1.4.0 pymongo~=4.8.0 python-dotenv~=1.0.1
COPY .env /opt/airflow/.env
```
### What happened
When deployed, the api-server terminates with code 0. Logs do not provide any error message as see below. I feel like that the apiServer gets killed because the livenessProbe seems to be unresponsive leading to a crash loop backoff.
```
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
____________ _____________
____ |__( )_________ __/__ /________ __
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /| / /
___ ___ | / _ / _ __/ _ / / /_/ /_ |/ |/ /
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/
[2025-07-08T09:40:56.754+0000] {api_server_command.py:92} INFO - Running the uvicorn with:
Apps: all
Workers: 4
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: -
=================================================================
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
INFO: Started parent process [7]
INFO: Waiting for child process [17]
INFO: Child process [17] died
INFO: Waiting for child process [18]
INFO: Child process [18] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [19]
INFO: Child process [19] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [20]
INFO: Child process [20] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [21]
INFO: Child process [21] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [22]
INFO: Child process [22] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [23]
INFO: Child process [23] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [24]
INFO: Child process [24] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [25]
INFO: Child process [25] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [26]
INFO: Child process [26] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [27]
INFO: Child process [27] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [28]
INFO: Child process [28] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [29]
INFO: Child process [29] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [30]
INFO: Child process [30] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [31]
INFO: Child process [31] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [32]
INFO: Child process [32] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [33]
INFO: Child process [33] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [34]
INFO: Child process [34] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [35]
INFO: Child process [35] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [36]
INFO: Child process [36] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [37]
INFO: Child process [37] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [38]
INFO: Child process [38] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [39]
INFO: Child process [39] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [40]
INFO: Child process [40] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [41]
INFO: Child process [41] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [42]
INFO: Child process [42] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [43]
INFO: Child process [43] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [44]
INFO: Child process [44] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [45]
INFO: Child process [45] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [46]
INFO: Child process [46] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [47]
INFO: Child process [47] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [48]
INFO: Child process [48] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [49]
INFO: Child process [49] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [50]
INFO: Child process [50] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [51]
INFO: Child process [51] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [52]
INFO: Child process [52] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [53]
INFO: Child process [53] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [54]
INFO: Child process [54] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [55]
INFO: Child process [55] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [56]
INFO: Child process [56] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [57]
INFO: Child process [57] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [58]
INFO: Child process [58] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [66]
INFO: Child process [66] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [67]
INFO: Child process [67] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [68]
INFO: Child process [68] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [69]
INFO: Child process [69] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [70]
INFO: Child process [70] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [71]
INFO: Child process [71] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [72]
INFO: Child process [72] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [73]
INFO: Child process [73] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [74]
INFO: Child process [74] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [75]
INFO: Child process [75] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [76]
INFO: Child process [76] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [77]
INFO: Child process [77] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [78]
INFO: Child process [78] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [79]
INFO: Child process [79] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [87]
INFO: Child process [87] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [88]
INFO: Child process [88] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [89]
INFO: Child process [89] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [90]
INFO: Child process [90] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [91]
INFO: Child process [91] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [92]
INFO: Child process [92] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [93]
INFO: Child process [93] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [94]
INFO: Child process [94] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [95]
INFO: Child process [95] died
/home/airflow/.local/lib/python3.12/site-packages/airflow/configuration.py:858 DeprecationWarning: The secret_key option in [webserver] has been moved to the secret_key option in [api] - the old setting has been used, but please update your config.
INFO: Waiting for child process [96]
INFO: Child process [96] died
INFO: Waiting for child process [97]
INFO: Child process [97] died
INFO: Waiting for child process [98]
INFO: Child process [98] died
INFO: Received SIGTERM, exiting.
INFO: Terminated child process [100]
INFO: Terminated child process [101]
INFO: Terminated child process [102]
INFO: Waiting for child process [99]
INFO: Waiting for child process [100]
INFO: Waiting for child process [101]
INFO: Waiting for child process [102]
INFO: Stopping parent process [7]
```
### What you think should happen instead
The ApiServer should not be killed.
### How to reproduce
Use the provided helm chart
### Anything else
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
GitHub link: https://github.com/apache/airflow/discussions/53017
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ApiServer terminated with code 0 [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: ApiServer terminated with code 0
That's an intereting discussion, but not airflow issue (at least not yet) - there are plenty of reasons why k8s might kill your pods - for example because you lack resources. And the only way you can investigate it in your k8s logs (including being able to see liveness probes and k8s logs showing why pods are killed) - there are a lot of tutorials out there that describe how to get the logs depending on your k8s choice and as a deployment manager you need to learn how to get it in your k8s. Once you know what's the reason by looking at your k8s (not Airflow !) logs you can post your findings there and then the discussion can continue.
GitHub link: https://github.com/apache/airflow/discussions/53017#discussioncomment-13694099
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ApiServer terminated with code 0 [airflow]
Posted by "Ph0tonic (via GitHub)" <gi...@apache.org>.
GitHub user Ph0tonic added a comment to the discussion: ApiServer terminated with code 0
Thanks for your reply. I had a look at the k8s logs and the pod get killed due to the startup probe failing. However this probe is configured by the helm chart provided in this repo, I only increased the timeout to prevent the failure to happen due to a slow start of the api. Any idea where I should look for ? Thanks
GitHub link: https://github.com/apache/airflow/discussions/53017#discussioncomment-13694349
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ApiServer terminated with code 0 [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
GitHub user boring-cyborg[bot] added a comment to the discussion: ApiServer terminated with code 0
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
GitHub link: https://github.com/apache/airflow/discussions/53017#discussioncomment-13694061
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ApiServer terminated with code 0 [airflow]
Posted by "Ph0tonic (via GitHub)" <gi...@apache.org>.
GitHub user Ph0tonic added a comment to the discussion: ApiServer terminated with code 0
Hum, so if I remember correctly, I needed to increase the CPU resources. Airflow seems to be quite CPU-intensive. Without enough CPU, the time it takes to start is too long, and it gets killed before it’s ready. We are not using it anymore, so I hope this helps you.
GitHub link: https://github.com/apache/airflow/discussions/53017#discussioncomment-15496449
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ApiServer terminated with code 0 [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: ApiServer terminated with code 0
Well - helm chart is your to understand and modify. I believe in each kubernetes when prob fails it prints why. And you can find the reason. So I would be just guessing what could be the reason. From that you might find out what is happening. And maybe (again) your k8s does not have enough resources and everythign is REALLLY SLOW.. That would likely explain why startup probes are failng.
This is your job to make sure that you have enough resources and configure your timeouts/probes etc. Our Helm chart is just starting point for you - you cannot treat it as a "black box" that shoudl "always work" - when it does not, you need to look inside and turn the right knobs to fix things.
GitHub link: https://github.com/apache/airflow/discussions/53017#discussioncomment-13694851
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ApiServer terminated with code 0 [airflow]
Posted by "romanzdk (via GitHub)" <gi...@apache.org>.
GitHub user romanzdk added a comment to the discussion: ApiServer terminated with code 0
@Ph0tonic have you managed to fix this? we are facing probably same/similar issue
GitHub link: https://github.com/apache/airflow/discussions/53017#discussioncomment-15426238
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org