Add docs for flannel-vxlan option

This commit is contained in:
Justin Santa Barbara 2017-08-20 09:42:03 -04:00
parent 15d6834113
commit f463a8e30e
8 changed files with 15 additions and 12 deletions

View File

@ -248,7 +248,7 @@ func NewCmdCreateCluster(f *util.Factory, out io.Writer) *cobra.Command {
cmd.Flags().StringVar(&options.Image, "image", options.Image, "Image to use for all instances.") cmd.Flags().StringVar(&options.Image, "image", options.Image, "Image to use for all instances.")
cmd.Flags().StringVar(&options.Networking, "networking", "kubenet", "Networking mode to use. kubenet (default), classic, external, kopeio-vxlan (or kopeio), weave, flannel, calico, canal, kube-router.") cmd.Flags().StringVar(&options.Networking, "networking", "kubenet", "Networking mode to use. kubenet (default), classic, external, kopeio-vxlan (or kopeio), weave, flannel-vxlan (or flannel), flannel-udp, calico, canal, kube-router.")
cmd.Flags().StringVar(&options.DNSZone, "dns-zone", options.DNSZone, "DNS hosted zone to use (defaults to longest matching zone)") cmd.Flags().StringVar(&options.DNSZone, "dns-zone", options.DNSZone, "DNS hosted zone to use (defaults to longest matching zone)")
cmd.Flags().StringVar(&options.OutDir, "out", options.OutDir, "Path to write any local output") cmd.Flags().StringVar(&options.OutDir, "out", options.OutDir, "Path to write any local output")
@ -692,6 +692,7 @@ func RunCreateCluster(f *util.Factory, out io.Writer, c *CreateClusterOptions) e
Backend: "vxlan", Backend: "vxlan",
} }
case "flannel-udp": case "flannel-udp":
glog.Warningf("flannel UDP mode is not recommended; consider flannel-vxlan instead")
cluster.Spec.Networking.Flannel = &api.FlannelNetworkingSpec{ cluster.Spec.Networking.Flannel = &api.FlannelNetworkingSpec{
Backend: "udp", Backend: "udp",
} }

View File

@ -82,7 +82,7 @@ kops create cluster
--master-zones stringSlice Zones in which to run masters (must be an odd number) --master-zones stringSlice Zones in which to run masters (must be an odd number)
--model string Models to apply (separate multiple models with commas) (default "config,proto,cloudup") --model string Models to apply (separate multiple models with commas) (default "config,proto,cloudup")
--network-cidr string Set to override the default network CIDR --network-cidr string Set to override the default network CIDR
--networking string Networking mode to use. kubenet (default), classic, external, kopeio-vxlan (or kopeio), weave, flannel, calico, canal, kube-router. (default "kubenet") --networking string Networking mode to use. kubenet (default), classic, external, kopeio-vxlan (or kopeio), weave, flannel-vxlan (or flannel), flannel-udp, calico, canal, kube-router. (default "kubenet")
--node-count int32 Set the number of nodes --node-count int32 Set the number of nodes
--node-security-groups stringSlice Add precreated additional security groups to nodes. --node-security-groups stringSlice Add precreated additional security groups to nodes.
--node-size string Set instance size for nodes --node-size string Set instance size for nodes

View File

@ -32,7 +32,7 @@ Several different providers are currently built into kops:
* [Calico](http://docs.projectcalico.org/v2.0/getting-started/kubernetes/installation/hosted/) * [Calico](http://docs.projectcalico.org/v2.0/getting-started/kubernetes/installation/hosted/)
* [Canal (Flannel + Calico)](https://github.com/projectcalico/canal) * [Canal (Flannel + Calico)](https://github.com/projectcalico/canal)
* [flannel](https://github.com/coreos/flannel) * [flannel](https://github.com/coreos/flannel) - use `--networking flannel-vxlan` (recommended) or `--networking flannel-udp` (legacy). `--networking flannel` now selects `flannel-vxlan`.
* [kopeio-vxlan](https://github.com/kopeio/networking) * [kopeio-vxlan](https://github.com/kopeio/networking)
* [kube-router](./networking.md#kube-router-example-for-cni-ipvs-based-service-proxy-and-network-policy-enforcer) * [kube-router](./networking.md#kube-router-example-for-cni-ipvs-based-service-proxy-and-network-policy-enforcer)
* [weave](https://github.com/weaveworks/weave-kube) * [weave](https://github.com/weaveworks/weave-kube)

View File

@ -0,0 +1,8 @@
_This is a WIP document describing changes to the upcoming kops 1.8 release_
# Significant changes
* flannel now has a `backend` property in the manifest, which can be either `udp` or `vxlan`. `udp`
is not recommended, but will be the default value for existing clusters or clusters created via manifests.
`kops create cluster` with `--networking flannel` will use `vxlan`, `--networking flannel-vxlan`
or `--networking flannel-udp` can be specified to explicitly choose a backend mode.

View File

@ -60,7 +60,7 @@ type WeaveNetworkingSpec struct {
// Flannel declares that we want Flannel networking // Flannel declares that we want Flannel networking
type FlannelNetworkingSpec struct { type FlannelNetworkingSpec struct {
// Backend is the backend overlay type we want to use // Backend is the backend overlay type we want to use (vxlan or udp)
Backend string `json:"backend,omitempty"` Backend string `json:"backend,omitempty"`
} }

View File

@ -60,7 +60,7 @@ type WeaveNetworkingSpec struct {
// Flannel declares that we want Flannel networking // Flannel declares that we want Flannel networking
type FlannelNetworkingSpec struct { type FlannelNetworkingSpec struct {
// Backend is the backend overlay type we want to use // Backend is the backend overlay type we want to use (vxlan or udp)
Backend string `json:"backend,omitempty"` Backend string `json:"backend,omitempty"`
} }

View File

@ -60,7 +60,7 @@ type WeaveNetworkingSpec struct {
// Flannel declares that we want Flannel networking // Flannel declares that we want Flannel networking
type FlannelNetworkingSpec struct { type FlannelNetworkingSpec struct {
// Backend is the backend overlay type we want to use // Backend is the backend overlay type we want to use (vxlan or udp)
Backend string `json:"backend,omitempty"` Backend string `json:"backend,omitempty"`
} }

View File

@ -30,12 +30,8 @@ package cloudup
import ( import (
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"github.com/golang/glog"
"os" "os"
"strconv" "strconv"
"strings" "strings"
"text/template" "text/template"
@ -44,9 +40,7 @@ import (
"k8s.io/kops/pkg/apis/kops" "k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/dns" "k8s.io/kops/pkg/dns"
"k8s.io/kops/pkg/model" "k8s.io/kops/pkg/model"
"k8s.io/kops/upup/pkg/fi" "k8s.io/kops/upup/pkg/fi"
"k8s.io/kops/upup/pkg/fi/cloudup/gce" "k8s.io/kops/upup/pkg/fi/cloudup/gce"
) )