mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Merge pull request #2 from moelsayed/add_network_plugin_support
add network plugin support
This commit is contained in:
@@ -22,6 +22,9 @@ type Cluster struct {
|
||||
KubernetesServiceIP net.IP
|
||||
Certificates map[string]pki.CertificatePKI
|
||||
ClusterDomain string
|
||||
NetworkPlugin string `yaml:"network_plugin"`
|
||||
ClusterCIDR string
|
||||
ClusterDnsServer string
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -65,6 +68,8 @@ func ParseConfig(clusterFile string) (*Cluster, error) {
|
||||
return nil, fmt.Errorf("Failed to get Kubernetes Service IP: %v", err)
|
||||
}
|
||||
c.ClusterDomain = c.Services.Kubelet.ClusterDomain
|
||||
c.ClusterCIDR = c.Services.KubeController.ClusterCIDR
|
||||
c.ClusterDnsServer = c.Services.Kubelet.ClusterDnsServer
|
||||
return c, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user