-
Notifications
You must be signed in to change notification settings - Fork 488
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
New components remote.kubernetes.secret and remote.kubernetes.configmap #4854
Conversation
`poll_frequency` | `duration` | Frequency to poll the kubernetes API. | `"1m"` | no | ||
`poll_timeout` | `duration` | Timeout when polling the kubernetes API.. | `"15s"` | no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these components do a watch call against the Kubernetes API instead of a poll?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am worried about the number of connections we'd take up to do that. Each component would have its own watch for each agent, or we combine internally and have to manage either a watch per namespace or an overly broad watch on the cluster.
For something that is not expected to change at high frequency, I thought this was a good trade off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention that some managed Kubernetes services also have some lower rate limits or throttles.
Maybe a component can be watch multiple configmaps/secrets by an selector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, but that would also add significant complexity to the implementation here, as well as to what the user needs to understand about it. There is always an alternative to mount things directly to the agent pod if such limits are a serious problem.
There are use cases where we may want more "dynamic" loading of config maps (like for dynamically loading flow modules from configmaps with a certain selector), but for now we don't really have the river features (map/reduce) needed to take advantage of that. remote.kubernetes.configmaps["configmap_name"]["key_name"]
could be possible, but I'm not a huge fan at present. I'd rather get this simpler version out, and go from there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor spelling and phrase corrections
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…gmap.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
…t.md Co-authored-by: Clayton Cornell <[email protected]>
if args.PollFrequency <= 0 { | ||
return fmt.Errorf("poll_frequency must be greater than 0") | ||
} | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there also be a check that the PollTimeout
is > 0? Otherwise it will always cancel the request
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.configmap.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/remote.kubernetes.secret.md
Outdated
Show resolved
Hide resolved
…gmap.md Co-authored-by: Mischa Thompson <[email protected]>
…t.md Co-authored-by: Mischa Thompson <[email protected]>
…gmap.md Co-authored-by: Mischa Thompson <[email protected]>
Co-authored-by: Mischa Thompson <[email protected]>
…gmap.md Co-authored-by: Mischa Thompson <[email protected]>
…t.md Co-authored-by: Mischa Thompson <[email protected]>
Co-authored-by: Mischa Thompson <[email protected]>
…t.md Co-authored-by: Mischa Thompson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs are OK as-is.
Implements #2976