Replace the cluster network segment

I need to change the pod network segment of my cluster. How can I change the pod network segment of my cluster when the cluster is running

If you mean change the IP address range for the Pods then depending on your version of microk8s the documentation for Changing Pod CIDR has the required changes.