docker
Directory actions
More options
Directory actions
More options
docker
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
A simple example of how to add cronstable to a docker image. To try it out, run for instance: $ docker build -t cronstabledemo . $ docker run -ti cronstabledemo -l DEBUG # Ctrl-C to stop Moreover, you can find an example of deploying to Kubernetes in the ``k8s-deploy.yaml`` file. To test: $ kubectl apply -f k8s-deploy.yaml deployment "cronstabledemo" created Check that the pod was created: $ kubectl get pods -l app=cronstabledemo NAME READY STATUS RESTARTS AGE cronstabledemo-cffff957f-9dt5r 1/1 Running 0 1m Follow the logs from the pod: $ kubectl logs --timestamps -f cronstabledemo-cffff957f-9dt5r (hit Ctrl-C to stop following logs) To undo the changes and stop the pod: $ kubectl delete deployment cronstabledemo deployment "cronstabledemo" deleted