mirror of https://github.com/kubernetes/kops.git
Add docs for flannel-vxlan option
This commit is contained in:
parent
15d6834113
commit
f463a8e30e
|
@ -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.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.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",
|
||||
}
|
||||
case "flannel-udp":
|
||||
glog.Warningf("flannel UDP mode is not recommended; consider flannel-vxlan instead")
|
||||
cluster.Spec.Networking.Flannel = &api.FlannelNetworkingSpec{
|
||||
Backend: "udp",
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ kops create cluster
|
|||
--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")
|
||||
--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-security-groups stringSlice Add precreated additional security groups to nodes.
|
||||
--node-size string Set instance size for nodes
|
||||
|
|
|
@ -32,7 +32,7 @@ Several different providers are currently built into kops:
|
|||
|
||||
* [Calico](http://docs.projectcalico.org/v2.0/getting-started/kubernetes/installation/hosted/)
|
||||
* [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)
|
||||
* [kube-router](./networking.md#kube-router-example-for-cni-ipvs-based-service-proxy-and-network-policy-enforcer)
|
||||
* [weave](https://github.com/weaveworks/weave-kube)
|
||||
|
|
|
@ -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.
|
|
@ -60,7 +60,7 @@ type WeaveNetworkingSpec struct {
|
|||
|
||||
// Flannel declares that we want Flannel networking
|
||||
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"`
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ type WeaveNetworkingSpec struct {
|
|||
|
||||
// Flannel declares that we want Flannel networking
|
||||
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"`
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ type WeaveNetworkingSpec struct {
|
|||
|
||||
// Flannel declares that we want Flannel networking
|
||||
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"`
|
||||
}
|
||||
|
||||
|
|
|
@ -30,12 +30,8 @@ package cloudup
|
|||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
|
||||
"github.com/golang/glog"
|
||||
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"strings"
|
||||
"text/template"
|
||||
|
||||
|
@ -44,9 +40,7 @@ import (
|
|||
"k8s.io/kops/pkg/apis/kops"
|
||||
"k8s.io/kops/pkg/dns"
|
||||
"k8s.io/kops/pkg/model"
|
||||
|
||||
"k8s.io/kops/upup/pkg/fi"
|
||||
|
||||
"k8s.io/kops/upup/pkg/fi/cloudup/gce"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue