Has anyone tried creating one node cluster where master node and worker node remains in the same node

[root@kubernetes manifests]# kubeadm join 10.128.0.17:6443 --token xobxxxxxh56.loyr72nys4cf0l2e --discovery-token-ca-cert-hash sha256:6646e90ef97575b65f162cd5b044efa1ce6c96f3a8e079f2bdc5055603e8ebd3
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Port-10250]: Port 10250 is in use
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher
[root@kubernetes manifests]#

With rancher rke tool you can create a one node cluster with no issues.

A control plane node is already essentially a worker node. It just has a taint on it that prevents scheduling of workloads by default. Remove the NoSchedule taint and workloads should be schedulable.