fix proxy mode comment message in v1alpha1

This commit is contained in:
m1093782566 2017-12-22 16:50:57 +08:00
parent 1bcf0b0a22
commit c44399f31e

View File

@ -148,14 +148,17 @@ type KubeProxyConfiguration struct {
ConfigSyncPeriod metav1.Duration `json:"configSyncPeriod"` ConfigSyncPeriod metav1.Duration `json:"configSyncPeriod"`
} }
// Currently two modes of proxying are available: 'userspace' (older, stable) or 'iptables' // Currently, three modes of proxy are available in Linux platform: 'userspace' (older, going to be EOL), 'iptables'
// (newer, faster). If blank, use the best-available proxy (currently iptables, but may // (newer, faster), 'ipvs'(newest, better in performance and scalability).
// change in future versions). 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 // Two modes of proxy are available in Windows platform: 'userspace'(older, stable) and 'kernelspace' (newer, faster).
// userspace proxy. //
type ProxyMode string // 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.
const ( // In Windows platform, if proxy mode is blank, use the best-available proxy (currently userspace, but may change in the
ProxyModeUserspace ProxyMode = "userspace" // future). If winkernel proxy is selected, regardless of how, but the Windows kernel can't support this mode of proxy,
ProxyModeIPTables ProxyMode = "iptables" // this always falls back to the userspace proxy.
) type ProxyMode string