The last step in our manually-executed pipeline is to remove all the resources we created, except the production release. Since they are all Pods in the same Namespace, that should be reasonably easy. We can remove them all from go-demo-3-build.
1 kubectl -n go-demo-3-build \ 2 delete pods --all
The output is as follows.
pod "cd" deleted
Figure 3-7: The cleanup stage of a continuous deployment pipeline
That's it. Our continuous pipeline is finished. Or, to be more precise, we defined all the steps of the pipeline. We are yet to automate everything.