How to make kubernetes (or microk8s actually ) to restart pods after new image with updated application created

Kubernetes version:

Client Version: version.Info{Major:“1”, Minor:“23+”, GitVersion:“v1.23.5-2+c812603a312d2b”, GitCommit:“c812603a312d2b0c59687a1be1ae17c0878104cc”, GitTreeState:“clean”, BuildDate:“2022-03-17T16:14:08Z”, GoVersion:“go1.17.8”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“23+”, GitVersion:“v1.23.5-2+c812603a312d2b”, GitCommit:“c812603a312d2b0c59687a1be1ae17c0878104cc”, GitTreeState:“clean”, BuildDate:“2022-03-17T16:11:06Z”, GoVersion:“go1.17.8”, Compiler:“gc”, Platform:“linux/amd64”}

Installation method: microk8s during ubuntu 20.04
Host OS: ubuntu 20.04