Posts

restart

While recently looking to creating Kubernetes manifests quickly for pods and deployments, I came across a really effective way of making either a job , deployment or pod manifest using the kubectl command. The pivot on which type of resource is created is based around the "restart" value passed to kubectl command. Lets me show you what I mean. The kubectl run function is described in the kubernetes.io documentation   as " Run a specified image on the cluster".  Check this command out first using the help function This produces an extensive list of examples and options for running resources with kubectl, and so is a very useful way to remember kubectl commands. But, lets specifically get information on the restart option. We can do this by filtering the output related to this using grep. Now we can see the information related to the "restart" option and how different parameters for this will give us very different outcomes. The three opt