diff --git a/b.multi_container_pods.md b/b.multi_container_pods.md index e83cfb62..f3f985ba 100644 --- a/b.multi_container_pods.md +++ b/b.multi_container_pods.md @@ -58,7 +58,7 @@ kubectl delete po busybox Easiest way to do it is create a pod with a single container and save its definition in a YAML file: ```bash -kubectl run web --image=nginx --restart=Never --port=80 --dry-run=client -o yaml > pod-init.yaml +kubectl run box --image=nginx --restart=Never --port=80 --dry-run=client -o yaml > pod-init.yaml ``` Copy/paste the container related values, so your final YAML should contain the volume and the initContainer: diff --git a/c.pod_design.md b/c.pod_design.md index fb07f5a6..deeff2a0 100644 --- a/c.pod_design.md +++ b/c.pod_design.md @@ -780,6 +780,11 @@ kubectl create cronjob busybox --image=busybox --schedule="*/1 * * * *" -- /bin/ ### See its logs and delete it +```bash +kubectl get po # copy the container just created +kubectl logs # you will see the date and message +kubectl delete cj busybox --force #cj stands for cronjob and --force to delete immediately +```
show