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