1podman-kube-down(1) General Commands Manual podman-kube-down(1)
2
3
4
6 podman-kube-down - Remove containers and pods based on Kubernetes YAML
7
8
10 podman kube down [options] file.yml|-|https://website.io/file.yml
11
12
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 unless the --force options is used.
18 If the YAML file is specified as -, podman kube down reads the YAML
19 from stdin. The input can also be a URL that points to a YAML file such
20 as https://podman.io/demo.yml. podman kube down tears down the pods
21 and containers created by podman kube play via the same Kubernetes YAML
22 from the URL. However, podman kube down does not work with a URL if the
23 YAML file the URL points to has been changed or altered since the cre‐
24 ation of the pods and containers using podman kube play.
25
26
28 --force
29 Tear down the volumes linked to the PersistentVolumeClaims as part
30 --down
31
32
34 Example YAML file demo.yml:
35
36
37 apiVersion: v1
38 kind: Pod
39 metadata:
40 spec:
41 containers:
42 - command:
43 - top
44 - name: container
45 value: podman
46 image: foobar
47
48
49
50 Remove the pod and containers as described in the demo.yml file
51
52
53 $ podman kube down demo.yml
54 Pods stopped:
55 52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
56 Pods removed:
57 52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
58
59
60
61 Remove the pod and containers as described in the demo.yml file YAML
62 sent to stdin
63
64
65 $ cat demo.yml | podman kube play -
66 Pods stopped:
67 52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
68 Pods removed:
69 52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
70
71
72
73 Remove the pods and containers as described in the demo.yml file YAML
74 read from a URL
75
76
77 $ podman kube down https://podman.io/demo.yml
78 Pods stopped:
79 52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
80 Pods removed:
81 52182811df2b1e73f36476003a66ec872101ea59034ac0d4d3a7b40903b955a6
82
83
84
85 podman kube down does not work with a URL if the YAML file the URL
86 points to has been changed or altered since it was used to create the
87 pods and containers.
88
89
91 podman(1), podman-kube(1), podman-kube-play(1), podman-kube-gener‐
92 ate(1), containers-certs.d(5)
93
94
95
96 podman-kube-down(1)