I am currently deploying from my local machine in kubernetes with the following commands
docker push xxxdev.azurecr.io/xxxxoapi:latest
kubectl run xxxxapi --image=xxxxdev.azurecr.io/travelexpensesparametroapi:latest --replicas=2 --labels app=apixxx
kubectl expose deployments xxxxxoapi --port=80 --name=servicio-xxxx --type=NodePort
The previous commands only replicate in the same way, how can I replicate between different nodes in order that if a node should die the pods within the other deployments keep responding?