Skip to content

Commit

Permalink
add k8s readiness probe support (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger authored Sep 18, 2024
1 parent 4112f62 commit 84acbac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docker/run-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ while ! curl -sg 'http://localhost:9090/api/v1/query?query=otelcol_process_uptim
sleep 1
done

echo "The OpenTelemetry collector and the Grafana LGTM stack are up and running."
touch /tmp/ready
echo "The OpenTelemetry collector and the Grafana LGTM stack are up and running. (created /tmp/ready)"

echo "Open ports:"
echo " - 4317: OpenTelemetry GRPC endpoint"
Expand Down
2 changes: 1 addition & 1 deletion examples/python/docker-compose.oats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.4'

services:
go:
python:
build:
context: .
dockerfile: Dockerfile
Expand Down
7 changes: 6 additions & 1 deletion k8s/lgtm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ spec:
ports:
- containerPort: 3000
- containerPort: 4317
- containerPort: 4318
- containerPort: 4318
readinessProbe:
exec:
command:
- cat
- /tmp/ready
1 change: 0 additions & 1 deletion oats
Submodule oats deleted from f73c5c

0 comments on commit 84acbac

Please sign in to comment.