1podman-kube-down(1)         General Commands Manual        podman-kube-down(1)
2
3
4

NAME

6       podman-kube-down - Remove containers and pods based on Kubernetes YAML
7
8

SYNOPSIS

10       podman kube down file.yml|-|https://website.io/file.yml
11
12

DESCRIPTION

14       podman  kube  down reads a specified Kubernetes YAML file, tearing down
15       pods that were created by the podman kube play command via the same Ku‐
16       bernetes  YAML file. Any volumes that were created by the previous pod‐
17       man kube play command remain intact. If the YAML file is  specified  as
18       -,  podman kube down reads the YAML from stdin. The input can also be a
19       URL that points to a YAML file such as https://podman.io/demo.yml. pod‐
20       man  kube  down  will  then teardown the pods and containers created by
21       podman kube play via the same Kubernetes YAML from  the  URL.  However,
22       podman  kube  down  will  not  work with a URL if the YAML file the URL
23       points to has been changed or altered since the creation  of  the  pods
24       and containers using podman kube play.
25
26

EXAMPLES

28       Example YAML file demo.yml:
29
30
31              apiVersion: v1
32              kind: Pod
33              metadata:
34              spec:
35                containers:
36                - command:
37                  - top
38                  - name: container
39                    value: podman
40                  image: foobar
41
42
43
44       Remove the pod and containers as described in the demo.yml file
45
46
47              $ podman kube down demo.yml
48              Pods stopped:
49              52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
50              Pods removed:
51              52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
52
53
54
55       Remove  the  pod  and containers as described in the demo.yml file YAML
56       sent to stdin
57
58
59              $ cat demo.yml | podman kube play -
60              Pods stopped:
61              52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
62              Pods removed:
63              52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
64
65
66
67       Remove the pods and containers as described in the demo.yml  file  YAML
68       read from a URL
69
70
71              $ podman kube down https://podman.io/demo.yml
72              Pods stopped:
73              52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
74              Pods removed:
75              52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
76
77
78
79       podman  kube  down  will  not  work with a URL if the YAML file the URL
80       points to has been changed or altered since it was used to  create  the
81       pods and containers.
82
83

SEE ALSO

85       podman(1),   podman-kube(1),   podman-kube-play(1),  podman-kube-gener‐
86       ate(1), containers-certs.d(5)
87
88
89
90                                                           podman-kube-down(1)
Impressum