This project is used to simulate sidecar container and app container starting sequence in Kubernetes.
-
sidecar
will start a http server listening on port8080
, and hold10s
before status updated tosuccess
by responding200
via/ready
endpoint. -
entrypoint wait
will triggerhttp://localhost:8080/ready
Running command make build
will output an image as sidecar image.
Run command kubectl apply -f deploy.yaml
. Before this, you can use stern
to monitor pod log.
More details can be located here.