Kubernetes configuration history

Does kubernetes store and provide the some previous configurations ?
Previous 5 configuration of a service deployment.

Cluster information:

Kubernetes version: NA
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: NA
Host OS: NA
CNI and version: NA
CRI and version: NA

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.