Skip to content

Commit

Permalink
add calico ipip config (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanux authored Jul 1, 2021
1 parent 4e41d8d commit 584ddfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func (d *Default) initRunner(cluster *v1.Cluster) error {
d.PodCIDR = cluster.Spec.Network.PodCIDR
d.SvcCIDR = cluster.Spec.Network.SvcCIDR
d.WithoutCNI = cluster.Spec.Network.WithoutCNI
d.IPIP = cluster.Spec.Network.IPIP
if d.MTU == "" {
if d.IPIP {
d.MTU = "1480"
Expand Down
1 change: 1 addition & 0 deletions types/api/v1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Network struct {
PodCIDR string `json:"podCIDR,omitempty"`
SvcCIDR string `json:"svcCIDR,omitempty"`
WithoutCNI bool `json:"withoutCNI,omitempty"`
IPIP bool `json:"ipip,omitempty"`
}

type Hosts struct {
Expand Down

0 comments on commit 584ddfd

Please sign in to comment.