Working with the Kubernetes API