-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Added blog post kpng-specialized-proxiers #29783
Conversation
✔️ Deploy Preview for kubernetes-io-main-staging ready! 🔨 Explore the source changes: 1d1c96c 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/61611e70cf0d0c0007901392 😎 Browse the preview: https://deploy-preview-29783--kubernetes-io-main-staging.netlify.app |
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.
@uablrek, would you be willing to propose this as a blog article for https://k8s.dev/? It feels like it's aimed at a contributor audience.
If it's published there, we'll be happy to mirror it here (approval is implicit).
@sftim I will. I assume it's here https://github.com/kubernetes/contributor-site/tree/master/content/en/blog ? A reason for non-developers to know this is the possibility to actually handle a difficult traffic use-case with a |
Unless https://k8s.dev/ is for K8s developers? I mean developers of K8s itself. In that case my post is not for them, sig/network maintains the |
That is the target audience for https://k8s.dev/: people who want to contribute to Kubernetes. I think writing an alternative proxy could count as a contribution, but equally you could use the information in this article to write your own proxy that you don't publish as a project contribution. |
/sig network |
Authors: Lars Ekman, Ericsson | ||
|
||
The post describes how you can create a specialized proxier using | ||
Kubernetes Proxy NG (kpng) without interfering with the existing |
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.
link here https://github.com/kubernetes-sigs/kpng???
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 a bit unsure if links are allowed in the initial paragraph. No other blogs seem to have them.
@sftim Is it allowed?
The post describes how you can create a specialized proxier using | ||
Kubernetes Proxy NG (kpng) without interfering with the existing | ||
kube-proxy. The kpng project aims at renewing the Kubernetes internal | ||
load-balancer, the "kube-proxy". An important feature of kpng is that |
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.
"internal load-balancer" can lead to confusions with the Service with Type LoadBalancer, it is more like "the default Kubernetes Services implementation" or something like that.
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.
Good point. I'll update that
sounds nice to me 👍 |
|
||
Authors: Lars Ekman, Ericsson | ||
|
||
The post describes how you can create a specialized proxier using |
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.
The post describes how you can create a specialized proxier using | |
The post will show you how to easily create a specialized service kube-proxy style network proxier, using |
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 leave out the "easily". Granted that the API stuff hadled by kpng is easy, but load-balancing is certainly not 😄
/hold |
@kubernetes/sig-network-misc how's this article looking? I'm looking for a reassurance that there's nothing in here where, once published, we'd want to yank the article or immediately update it. |
I have updated after review, but I still wonder if there is a better place for the example. A place where k8s examples are collected maybe? Where/who can I ask? |
But https://github.com/Nordix/kpng-example is perfectly fine for me, and if it's ok please publish. |
Could that example live within https://github.com/kubernetes-sigs/kpng/tree/master/examples ? If not, I wonder if we could get a repo https://github.com/kubernetes-sigs/kpng-examples and make a branch / directory there for this example? |
I'll check https://github.com/kubernetes-sigs/kpng/tree/master/examples. The only problem would be that I want to build the example out-of-tree. But perhaps it's ok if it can be copied. I'll be back... |
The example is copied to https://github.com/kubernetes-sigs/kpng/tree/master/examples/pipe-exec, and the link in the post updated. |
This is ready for a review; SIG Docs blog team can re-add LGTM after setting a publication date. |
@@ -0,0 +1,241 @@ | |||
--- | |||
layout: blog | |||
title: "Use KPNG to write specialized kube-proxiers" |
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.
title: "Use KPNG to write specialized kube-proxiers" | |
title: "Use KPNG to Write Specialized kube-proxiers" |
Shall I squash the commits and change the file name? And make a force push. |
@uablrek Yes, that will work |
@uablrek, file name should be |
@reylejano Done: rename, squash, rebase and force-push |
Thank you! |
LGTM label has been added. Git tree hash: fb9a004af180d321f49bfc32a70195e06cfeba89
|
/hold cancel |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sftim The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adds a blog post about the sig/network kpng project and how it can be used to create specialized proxiers to handle traffic use-cases not supported by K8s.
The post is intended for anyone and is kept short (no TL;DR). However for developers a more in-depth example is provided.
readable post
About the example
The example is currently hosted on https://github.com/Nordix/kpng-exampleMoved to https://github.com/kubernetes-sigs/kpng/tree/master/examples/pipe-exec
The example will be updated quite often to keep in pair with the
kpng
development.