Skip to content

Commit

Permalink
Merge pull request kubernetes#95872 from 22dm/kube-proxy-comment-fix
Browse files Browse the repository at this point in the history
Fix the kube-proxy document
  • Loading branch information
k8s-ci-robot authored Nov 9, 2020
2 parents f430075 + d38ff93 commit 2343b8a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion hack/.golint_failures
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1
staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1
staging/src/k8s.io/kube-aggregator/pkg/apiserver
staging/src/k8s.io/kube-aggregator/pkg/controllers/autoregister
staging/src/k8s.io/kube-proxy/config/v1alpha1
staging/src/k8s.io/kubectl/pkg/cmd/annotate
staging/src/k8s.io/kubectl/pkg/cmd/apply
staging/src/k8s.io/kubectl/pkg/cmd/attach
Expand Down
7 changes: 4 additions & 3 deletions pkg/proxy/apis/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,17 @@ type KubeProxyConfiguration struct {
DetectLocalMode LocalMode
}

// Currently, three modes of proxy are available in Linux platform: 'userspace' (older, going to be EOL), 'iptables'
// (newer, faster), 'ipvs'(newest, better in performance and scalability).
// ProxyMode represents modes used by the Kubernetes proxy server. Currently, three modes of proxy are available in
// Linux platform: 'userspace' (older, going to be EOL), 'iptables' (newer, faster), 'ipvs'(newest, better in performance
// and scalability).
//
// Two modes of proxy are available in Windows platform: 'userspace'(older, stable) and 'kernelspace' (newer, faster).
//
// In Linux platform, if proxy mode is blank, use the best-available proxy (currently iptables, but may change in the
// future). If the iptables proxy is selected, regardless of how, but the system's kernel or iptables versions are
// insufficient, this always falls back to the userspace proxy. IPVS mode will be enabled when proxy mode is set to 'ipvs',
// and the fall back path is firstly iptables and then userspace.

//
// In Windows platform, if proxy mode is blank, use the best-available proxy (currently userspace, but may change in the
// future). If winkernel proxy is selected, regardless of how, but the Windows kernel can't support this mode of proxy,
// this always falls back to the userspace proxy.
Expand Down
4 changes: 3 additions & 1 deletion staging/src/k8s.io/kube-proxy/config/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ type KubeProxyConfiguration struct {
DetectLocalMode LocalMode `json:"detectLocalMode"`
}

// ProxyMode represents modes used by the Kubernetes proxy server.
//
// Currently, three modes of proxy are available in Linux platform: 'userspace' (older, going to be EOL), 'iptables'
// (newer, faster), 'ipvs'(newest, better in performance and scalability).
//
Expand All @@ -175,7 +177,7 @@ type KubeProxyConfiguration struct {
// future). If the iptables proxy is selected, regardless of how, but the system's kernel or iptables versions are
// insufficient, this always falls back to the userspace proxy. IPVS mode will be enabled when proxy mode is set to 'ipvs',
// and the fall back path is firstly iptables and then userspace.

//
// In Windows platform, if proxy mode is blank, use the best-available proxy (currently userspace, but may change in the
// future). If winkernel proxy is selected, regardless of how, but the Windows kernel can't support this mode of proxy,
// this always falls back to the userspace proxy.
Expand Down

0 comments on commit 2343b8a

Please sign in to comment.