File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ FROM python:3.11-alpine
22
33WORKDIR /app
44COPY kuberhealthy_client kuberhealthy_client
5- COPY client.py .
5+ COPY example example
66
7- CMD ["python3" , "/app/client.py" ]
7+ CMD ["python3" , "/app/example/ client.py" ]
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ Both functions accept optional `url` and `run_uuid` keyword arguments if you pre
2525## Running the example
2626
2727Set the ` KH_REPORTING_URL ` and ` KH_RUN_UUID ` environment variables, add your
28- check logic to ` client.py ` , and then run:
28+ check logic to ` example/ client.py` , and then run:
2929
3030``` bash
31- python3 client.py
31+ python3 example/ client.py
3232```
3333
3434Within the ` main ` function, uncomment either ` report_ok() ` or
@@ -46,7 +46,7 @@ make push IMG=myrepo/example-check:latest
4646
4747## Using in your own checks
4848
49- 1 . Add your check logic to ` client.py ` or your own script. Call ` report_ok() `
49+ 1 . Add your check logic to ` example/ client.py` or your own script. Call ` report_ok() `
5050 when the check succeeds or ` report_error("message") ` when it fails.
51512 . Build and push your image as shown above.
52523 . Create a ` KuberhealthyCheck ` resource pointing at your image and apply it to any
File renamed without changes.
You can’t perform that action at this time.
0 commit comments