diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-08-03 07:56:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 07:56:13 +0000 |
commit | 1139cd9b8142aa4f4efb0f930a398453d521c1d9 (patch) | |
tree | 1a69e285813ea6d26c7da06d4e12230826ddb19e /docs/source/markdown/podman-kube-down.1.md | |
parent | c09457e34a429622475e27fe68e17effe47fe0c3 (diff) | |
parent | 1249cbb75f50182f19e5976fa149386672451f2a (diff) | |
download | podman-1139cd9b8142aa4f4efb0f930a398453d521c1d9.tar.gz podman-1139cd9b8142aa4f4efb0f930a398453d521c1d9.tar.bz2 podman-1139cd9b8142aa4f4efb0f930a398453d521c1d9.zip |
Merge pull request #14974 from nicrowe00/kubedown1
add "podman kube down" command
Diffstat (limited to 'docs/source/markdown/podman-kube-down.1.md')
-rw-r--r-- | docs/source/markdown/podman-kube-down.1.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-kube-down.1.md b/docs/source/markdown/podman-kube-down.1.md new file mode 100644 index 000000000..35725043b --- /dev/null +++ b/docs/source/markdown/podman-kube-down.1.md @@ -0,0 +1,43 @@ +% podman-kube-down(1) + +## NAME +podman-kube-down - Remove containers and pods based on Kubernetes YAML + +## SYNOPSIS +**podman kube down** *file.yml|-* + +## DESCRIPTION +**podman kube down** reads a specified Kubernetes YAML file, tearing down pods that were created by the `podman kube play` command via the same Kubernetes YAML file. Any volumes that were created by the previous `podman kube play` command remain intact. If the YAML file is specified as `-`, `podman kube down` reads the YAML from stdin. + +## EXAMPLES + +Example YAML file `demo.yml`: +``` +apiVersion: v1 +kind: Pod +metadata: +... +spec: + containers: + - command: + - top + - name: container + value: podman + image: foobar +... +``` + +Remove the pod and containers as described in the `demo.yml` file +``` +$ podman kube down demo.yml +52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6 +``` + +Remove the pod and containers as described in the`demo.yml` file YAML sent to stdin +``` +$ cat demo.yml | podman kube play - +52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6 +``` + +## SEE ALSO +**[podman(1)](podman.1.md)**, **[podman-kube(1)](podman-kube.1.md)**, **[podman-kube-play(1)](podman-kube-play.1.md)**, **[podman-generate-kube(1)](podman-generate-kube.1.md)**, **[containers-certs.d(5)](https://github.com/containers/image/blob/main/docs/containers-certs.d.5.md)** |