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(kuma-cp) Gateway mode in Dataplane on K8S #504

Merged
merged 2 commits into from
Dec 20, 2019

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

Support of Gateway on K8S.
Gateway in DP objects gets tags of the first inbound object.

Side question:
What if we don't find any services associated with pod? Right now we create Dataplane anyways with empty inbound object which is not valid from the Kuma CP core perspective.

@jakubdyszkiewicz jakubdyszkiewicz requested review from yskopets and a team December 19, 2019 13:54
Copy link
Contributor

@yskopets yskopets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we don't find any services associated with pod? Right now we create Dataplane anyways with empty inbound object which is not valid from the Kuma CP core perspective.

Validation web hook will reject such a Dataplane anyway. And, it least, this error will be visible through metrics.

We have a follow-up task to address a case of a Dataplane without inbound interfaces.

@@ -50,6 +49,8 @@ func (i *KumaInjector) InjectKuma(pod *kube_core.Pod) error {
for key, value := range i.NewAnnotations(pod) {
pod.Annotations[key] = value
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do we need to split if pod.Spec.InitContainers == nil { and pod.Spec.InitContainers = .

Let's move both statements at the same time

@jakubdyszkiewicz jakubdyszkiewicz force-pushed the feature/dataplane-gateway branch 2 times, most recently from 998c511 to 79f5e3f Compare December 20, 2019 10:11
@jakubdyszkiewicz jakubdyszkiewicz force-pushed the feature/dataplane-gateway-kubernetes branch from 7449cae to d0c2d5d Compare December 20, 2019 10:38
@jakubdyszkiewicz jakubdyszkiewicz changed the base branch from feature/dataplane-gateway to master December 20, 2019 10:38
@subnetmarco
Copy link
Contributor

Do we need another PR to enable this feature in Universal?

@jakubdyszkiewicz
Copy link
Contributor Author

@subnetmarco It's already there https://github.com/Kong/kuma/pull/503

@jakubdyszkiewicz jakubdyszkiewicz merged commit 73df422 into master Dec 20, 2019
@jakubdyszkiewicz jakubdyszkiewicz deleted the feature/dataplane-gateway-kubernetes branch December 20, 2019 10:59
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.

None yet

3 participants