How to add data nodes into a running cluster with X-pack-security:enabled

I need to add some data nodes into a running cluster, if i build the cluster without xpack-security only with a new "..apply -f data1.yaml .." the cluster increases the nodes but if i build the cluster with x-pack-security:enabled dont refresh the new nodes, Somebody knows how to set the data.yaml files? or how to overwrite the data nodes password?