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

feat: Add EnvoyProxySpec.EnvoyDaemonSet. #1457

Closed
wants to merge 3 commits into from

Conversation

tommie
Copy link
Contributor

@tommie tommie commented May 28, 2023

What this PR does / why we need it:

Allow using a DaemonSet instead of Deployment for EnvoyProxy.

Making EnvoyDeployment and EnvoyDaemonSet mutually exclusive.

Also adds KubernetesPodSpec.NodeSelector.

This is useful when there is no separate load-balancer or floating IPs routing to the cluster. Instead, some nodes are designated as public gateways. This allows for a fully self-contained Kubernetes cluster.

Which issue(s) this PR fixes:

Part of #1035

@codecov
Copy link

codecov bot commented May 28, 2023

Codecov Report

Merging #1457 (746a93b) into main (80db459) will decrease coverage by 0.02%.
The diff coverage is 62.92%.

@@            Coverage Diff             @@
##             main    #1457      +/-   ##
==========================================
- Coverage   61.43%   61.42%   -0.02%     
==========================================
  Files          79       80       +1     
  Lines       11439    11597     +158     
==========================================
+ Hits         7028     7123      +95     
- Misses       3950     4005      +55     
- Partials      461      469       +8     
Impacted Files Coverage Δ
api/config/v1alpha1/envoyproxy_types.go 100.00% <ø> (ø)
api/config/v1alpha1/zz_generated.deepcopy.go 0.00% <0.00%> (ø)
internal/infrastructure/kubernetes/infra.go 35.13% <0.00%> (-3.11%) ⬇️
...tructure/kubernetes/ratelimit/resource_provider.go 93.93% <0.00%> (-1.94%) ⬇️
internal/provider/kubernetes/controller.go 49.77% <38.09%> (-0.06%) ⬇️
api/config/v1alpha1/helpers.go 58.89% <40.90%> (+6.29%) ⬆️
internal/status/podset.go 50.00% <50.00%> (ø)
...frastructure/kubernetes/proxy/resource_provider.go 76.71% <73.07%> (-8.05%) ⬇️
internal/provider/kubernetes/predicates.go 58.37% <84.00%> (+2.60%) ⬆️
...ternal/infrastructure/kubernetes/infra_resource.go 82.08% <86.95%> (+1.03%) ⬆️
... and 4 more

... and 1 file with indirect coverage changes

tommie added 3 commits May 28, 2023 16:02
Making EnvoyDeployment and EnvoyDaemonSet mutually exclusive.

Also adds KubernetesPodSpec.NodeSelector.

This is useful when there is no separate load-balancer or floating IPs
routing to the cluster. Instead, some nodes are designated as public
gateways. This allows for a fully self-contained Kubernetes cluster.

Signed-off-by: Tommie Gannert <[email protected]>
Signed-off-by: Tommie Gannert <[email protected]>
Signed-off-by: Tommie Gannert <[email protected]>
@tommie tommie marked this pull request as ready for review May 28, 2023 14:40
@tommie tommie requested a review from a team as a code owner May 28, 2023 14:40
@tommie
Copy link
Contributor Author

tommie commented May 29, 2023

Talking to @arkodg, DaemonSet might be the wrong approach. Though I still think there is a place for having the nodeSelector. Being discussed.

@tommie
Copy link
Contributor Author

tommie commented May 29, 2023

Pulling the plug on this. Probably not needed. See #1035.

@tommie tommie closed this May 29, 2023
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

Successfully merging this pull request may close these issues.

1 participant