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

Add support for deploying a systemd service which configures egress dummy interfaces #76

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

simu
Copy link
Member

@simu simu commented Apr 19, 2024

See also projectsyn/component-cilium#104 and projectsyn/component-cilium#106

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

…ummy interfaces

This assumes that some other component (e.g. cilium) deploys a configmap
which contains the mapping from cluster node to shadow range. The
configmap must be accessible to the Kubelet (can be done e.g. by
deploying a daemonset which mounts the ConfigMap as a volume on the
target nodes)

The script expects the configmap to have a field for each target node.
The contents of each field are expected to be JSON with keys indicating
the interface prefix and the values being objects with fields "base",
"from" and "to" which can be used to construct the shadow egress IPs in
the range by iterating from "from" to "to" and using each value
generated by the iteration as the suffix to "base" (note that this
currently assumes that each egress range is fully contained in a /24).
@simu simu force-pushed the feat/egress-interfaces branch from c48574a to 03bf597 Compare April 19, 2024 15:16
@simu simu force-pushed the feat/egress-interfaces branch from 03bf597 to 7341f76 Compare April 19, 2024 15:19
@simu simu marked this pull request as ready for review April 19, 2024 15:34
@simu simu requested a review from a team as a code owner April 19, 2024 15:34
@simu simu merged commit 17f3781 into master Apr 22, 2024
16 checks passed
@simu simu deleted the feat/egress-interfaces branch April 22, 2024 12:02
@simu simu mentioned this pull request May 7, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants