Documentation ¶
Index ¶
- Constants
- func AddEtcdMember(ctx context.Context, etcdHost *hosts.Host, etcdHosts []*hosts.Host, ...) error
- func GetEtcdConnString(hosts []*hosts.Host) string
- func GetKubernetesServiceIP(serviceClusterRange string) (net.IP, error)
- func ReloadEtcdCluster(ctx context.Context, etcdHosts []*hosts.Host, etcdService v3.ETCDService, ...) error
- func RemoveControlPlane(ctx context.Context, controlHosts []*hosts.Host, force bool) error
- func RemoveEtcdMember(ctx context.Context, etcdHost *hosts.Host, etcdHosts []*hosts.Host, ...) error
- func RemoveEtcdPlane(ctx context.Context, etcdHosts []*hosts.Host) error
- func RemoveWorkerPlane(ctx context.Context, workerHosts []*hosts.Host, force bool) error
- func RollingUpdateNginxProxy(ctx context.Context, cpHosts []*hosts.Host, workerHosts []*hosts.Host, ...) error
- func RunControlPlane(ctx context.Context, controlHosts, etcdHosts []*hosts.Host, ...) error
- func RunEtcdPlane(ctx context.Context, etcdHosts []*hosts.Host, etcdService v3.ETCDService, ...) error
- func RunWorkerPlane(ctx context.Context, controlHosts, workerHosts []*hosts.Host, ...) error
Constants ¶
View Source
const ( HealthzAddress = "localhost" HealthzEndpoint = "/healthz" HTTPProtoPrefix = "http://" HTTPSProtoPrefix = "https://" )
View Source
const ( NginxProxyImage = "rancher/rke-nginx-proxy:0.1.0" NginxProxyEnvName = "CP_HOSTS" )
View Source
const ( ETCDRole = "etcd" ControlRole = "controlplane" WorkerRole = "worker" SidekickServiceName = "sidekick" RBACAuthorizationMode = "rbac" KubeAPIContainerName = "kube-api" KubeletContainerName = "kubelet" KubeproxyContainerName = "kube-proxy" KubeControllerContainerName = "kube-controller" SchedulerContainerName = "scheduler" EtcdContainerName = "etcd" NginxProxyContainerName = "nginx-proxy" SidekickContainerName = "service-sidekick" KubeAPIPort = 8080 SchedulerPort = 10251 KubeControllerPort = 10252 KubeletPort = 10250 KubeproxyPort = 10256 )
Variables ¶
This section is empty.
Functions ¶
func AddEtcdMember ¶
func GetEtcdConnString ¶
func GetKubernetesServiceIP ¶
func ReloadEtcdCluster ¶
func ReloadEtcdCluster(ctx context.Context, etcdHosts []*hosts.Host, etcdService v3.ETCDService, localConnDialerFactory hosts.DialerFactory) error
func RemoveControlPlane ¶
func RemoveEtcdMember ¶
func RemoveWorkerPlane ¶
func RollingUpdateNginxProxy ¶
func RunControlPlane ¶
func RunControlPlane(ctx context.Context, controlHosts, etcdHosts []*hosts.Host, controlServices v3.RKEConfigServices, sidekickImage, authorizationMode string, localConnDialerFactory hosts.DialerFactory) error
func RunEtcdPlane ¶
func RunEtcdPlane(ctx context.Context, etcdHosts []*hosts.Host, etcdService v3.ETCDService, localConnDialerFactory hosts.DialerFactory) error
func RunWorkerPlane ¶
func RunWorkerPlane(ctx context.Context, controlHosts, workerHosts []*hosts.Host, workerServices v3.RKEConfigServices, nginxProxyImage, sidekickImage string, localConnDialerFactory hosts.DialerFactory) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.