kubectl apply -f shard2-statefulset.yaml kubectl get pods -l app=mongo-shard2 kubectl exec -it shard2-0 -- \ mongosh --host 127.0.0.1 --port 27018