Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl error when try to add shards to mongos server. #5

Open
robertocandelu opened this issue May 15, 2018 · 1 comment
Open

kubectl error when try to add shards to mongos server. #5

robertocandelu opened this issue May 15, 2018 · 1 comment

Comments

@robertocandelu
Copy link

When i try to add shards to mongos server i receive a error from kubectl shell:

echo "Adding Shard 1 : Shard1 "
kubectl exec --namespace=daemonsl $(kubectl get pod -l "tier=routers" -o jsonpath='{.items[0].metadata.name}' --namespace=daemonsl ) -c mongos-container -- mongo --port 27017 --eval "sh.addShard("Shard1/mongodb-shard1-0.mongodb-shard1-headless-service.daemonsl.svc.cluster.local:27017");

Error: unknown shorthand flag: 'l' in -l

@ChristopherElliott
Copy link

Same problem here using it in a $(subcommand)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants