My health probes in aks keep resetting over time w...
# ask-ai
j
My health probes in aks keep resetting over time wto without the "/healthz". Could this be because of a timeout period? what is the recommended time for the health calls on a Kubernetes deployment?
k
Based on the provided knowledge sources, health probes in Airbyte Kubernetes deployments (including AKS) are typically configured with specific timeout and interval settings. If your probes are resetting, it could indeed be due to the timeout period being too short, or the endpoint not responding quickly enough. From the Airbyte Helm chart examples, here are some typical values: - livenessProbe/readinessProbe: - `initialDelaySeconds`: 10–30 seconds - `periodSeconds`: 10 seconds - `timeoutSeconds`: 1–10 seconds - `failureThreshold`: 3 - `successThreshold`: 1 For example, a common configuration is:
Copy code
yaml livenessProbe:   enabled: true   initialDelaySeconds: 30   periodSeconds: 10   timeoutSeconds: 1   failureThreshold: 3   successThreshold: 1  readinessProbe:   enabled: true   initialDelaySeconds: 10   periodSeconds: 10   timeoutSeconds: 1   failureThreshold: 3   successThreshold: 1
If your health endpoint is not
/healthz
but something else (like
/health
or
/api/v1/health
), make sure your probe is targeting the correct path. Also, if the timeout is too short and your service takes longer to respond, Kubernetes may mark the pod as unhealthy and restart it. Increasing
timeoutSeconds
or
failureThreshold
can help if your service is slow to respond at times. There is no single "recommended" value, but the above settings are commonly used in Airbyte deployments. You may need to adjust them based on your application's startup and response characteristics. If you continue to see resets, try increasing
timeoutSeconds
and/or
failureThreshold
incrementally. For more details and examples, see the Airbyte Helm chart configuration references: - [Example probe settings in Airbyte Helm chart](https://github.com/airbytehq/airbyte/issues/49843) - [Another example with readiness/liveness probe settings](https://github.com/airbytehq/airbyte/issues/49843) If you need to change the probe path, ensure it matches your application's health endpoint. If the problem persists after tuning these values, further investigation into your application's health endpoint performance may be needed.
j
I put in a custom connector via docker and trying to add it i get the below: Entrypoint was not set! AIRBYTE_ENTRYPOINT must be set in the container.
@kapa.ai Januka Peiris [2:05 PM] I put in a custom connector via docker and trying to add it i get the below: Entrypoint was not set! AIRBYTE_ENTRYPOINT must be set in the container. this is my current dockerfile: FROM python:3.9-slim # Install dependencies COPY setup.py setup.py COPY MANIFEST.in MANIFEST.in COPY source_opentable/ source_opentable/ COPY main.py main.py RUN pip install . # Set the entrypoint ENTRYPOINT ["python", "main.py"]
k
A message from kapa.ai
The error message "Entrypoint was not set! AIRBYTE_ENTRYPOINT must be set in the container." indicates that Airbyte expects the
AIRBYTE_ENTRYPOINT
environment variable to be set in your Docker image. This is a requirement for custom connectors in Airbyte. Your current Dockerfile sets the entrypoint using the
ENTRYPOINT
instruction, but it does not set the
AIRBYTE_ENTRYPOINT
environment variable. You need to add the following line to your Dockerfile:
Copy code
dockerfile ENV AIRBYTE_ENTRYPOINT "python main.py"
So, your Dockerfile should look like this:
Copy code
dockerfile FROM python:3.9-slim  # Install dependencies COPY setup.py setup.py COPY MANIFEST.in MANIFEST.in COPY source_opentable/ source_opentable/ COPY main.py main.py  RUN pip install .  # Set the Airbyte entrypoint environment variable ENV AIRBYTE_ENTRYPOINT "python main.py"  # Set the entrypoint ENTRYPOINT ["python", "main.py"]
This will resolve the error, as Airbyte requires the
AIRBYTE_ENTRYPOINT
environment variable to be set in the container, even if you also use the
ENTRYPOINT
instruction in Docker. This is confirmed in the Airbyte documentation for custom connector Dockerfiles, which explicitly sets this environment variable in their examples [Setting up standard acceptance tests for your connector](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector). If you continue to have issues, ensure your Docker image is rebuilt and that you are using the updated image in Airbyte.
j
@kapa.ai I'm getting this error.. Using AIRBYTE_ENTRYPOINT: python airbyte-ivy-opentable1/main.py python: can't open file '/config/airbyte-ivy-opentable1/main.py': [Errno 2] No such file or directory its deployed on aks, does that make a difference?
k
A message from kapa.ai
The error message:
Copy code
python: can't open file '/config/airbyte-ivy-opentable1/main.py': [Errno 2] No such file or directory
indicates that Airbyte is trying to execute your connector's entrypoint from the
/config/airbyte-ivy-opentable1/main.py
path, but the file does not exist at that location inside the container. Key points from the Airbyte documentation: - Airbyte mounts configuration files (like
config.json
,
catalog.json
) into the
/airbyte
or
/config
directory inside the container, but your connector code (like
main.py
) should be present in the working directory of your Docker image, not in
/config
 [Airbyte Protocol Docker Interface](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol-docker). - The
AIRBYTE_ENTRYPOINT
should point to the correct path of your main script as it exists inside the container. If your Dockerfile copies
main.py
to the root or a subdirectory, the entrypoint should match that path. Why this happens on AKS: This is not specific to AKS; it is about how Airbyte runs connector containers. Airbyte expects to find your connector code at the path specified by
AIRBYTE_ENTRYPOINT
inside the container. If the path is incorrect, you will get a "file not found" error. How to fix: 1. Check your Dockerfile: Make sure you are copying
main.py
to the correct location. For example, if you copy it to
/airbyte/integration_code/main.py
, your entrypoint should be:
Copy code
dockerfile    ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"    ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
2. Do not reference
/config
in your entrypoint:
The
/config
directory is for Airbyte's config files, not your code. 3. Rebuild and push your Docker image after making changes. Summary: The error is due to a mismatch between the path in your
AIRBYTE_ENTRYPOINT
and where your code actually exists in the container. Adjust your Dockerfile and entrypoint to match the actual location of your
main.py
file inside the image. This is a common requirement for all Airbyte deployments, including on AKS [Airbyte Protocol Docker Interface](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol-docker). If you need more details on the required Docker image structure, see the [Airbyte Protocol Docker Interface documentation](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol-docker).