-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
--pod and -p don't select a single pod #297
Comments
Best is to use label selectors.
If this list your pod. Then create the ksync configuration using same label selectors(
I have not used |
@alok87 I doubt there is a combination of label selectors that will result in selecting a single specific pod from a replica set. There are many cases where someone would want to sync specifically with a pod for the lifecycle of that pod. I am sure I can work around this for my use case. The purpose of this issue is to note that the flag doesn't work as advertised and should probably be removed from the first step of the README if its not the recommended way of selecting a single pod.
|
I don't think I've seen someone use that flag before, so I'll take a look shortly to see what it's doing. |
+1 saw the same. It works good when I set up pod '-p' and container '-c', but if I set up only pod -p -> seems ksync trying to watch all pods. |
Interesting, definitely a bug in there somewhere. |
This is because the flag format doesn't accept the space and needs the equal sign. I just ran into this earlier today. ksync create --name test --pod=api-server-7d48bfc846-2zdg8 -c api-server /local/scripts/ /pod/scripts |
I'm going to mark this as solved. Thanks everyone! |
I have a replica set with several with two pods. No matter what I try I cannot make ksync only select a specific pod.
Following the readme I tried:
ksync create --name test --pod api-server-7d48bfc846-2zdg8 /local/scripts/ /pod/scripts
ksync create --name test --pod api-server-7d48bfc846-2zdg8 -c api-server /local/scripts/ /pod/scripts
api-server
container which is better because it selects only the two identical pods but ideally I would only want to sync with one.I have also tried adding "quotes" around the name and setting up the key/value pair like --pod=api-server with identical results
The text was updated successfully, but these errors were encountered: