8 Working with Kubernetes
This chapter covers
- Creating Kubernetes YAML files from existing Podman pods and containers
- Creating Podman containers and pods from a Kubernetes YAML file
- Shutting down and removing pods and containers using the Kubernetes YAML file
- Building container images on the fly before launching pods and containers from a Kubernetes.YAML file
- Running Podman inside of a Podman and a Kubernetes container
Some readers come to this chapter expecting to see how Podman can be used as the container engine for Kubernetes, similar to how it has used Docker in the past. While there have been some efforts to use Podman as the container engine for Podman. (The Kind project supports this). I do not generally recommend that you use Podman for this purpose. I recommend that you use CRI-O described in appendix A, since it was built specifically to work with Kubernetes and shares the underlying libraries of Podman. Kubernetes is now discouraging users from using the Docker backend, and encouraging them to use a CRI-O or containerd as its backend.
This chapter covers how you can use the same structured language with both Kubernetes and Podman and how you can run Podman containers inside of a Kubernetes cluster.