1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 14:36:32 +00:00

add network plugin support

add template configration through env variables

add kubedns addon
This commit is contained in:
moelsayed
2017-11-06 22:50:41 +02:00
parent 66fd6c4eba
commit babe95f183
13 changed files with 504 additions and 1 deletions

View File

@@ -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
}