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 [options] 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 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

OPTIONS

28   --force
29       Tear  down  the  volumes  linked  to the PersistentVolumeClaims as part
30       --down
31
32

EXAMPLES

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

SEE ALSO

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