связность хорошая. пробовал в разных средах.
последняя - 4 kvm виртуалки на одном сервере
в логах всякая ругань
E0625 16:54:04.122089 1 leaderelection.go:224] error retrieving resource lock kube-system/kube-controller-manager: the server was unable to return a response in he time allotted, but may still be processing the request (get endpoints kube-controller-manager)
E0625 16:54:04.426652 1 available_controller.go:295] v1.apps failed with: Unable to refresh the Webhook configuration: the server was unable to return a responsein the time allotted, but may still be processing the request (get mutatingwebhookconfigurations.admissionregistration.k8s.io)
Что по логам? У всех сетевая связность хорошая? Какие параметры командной строки?
вот шедулер стал лидером и через пару минут упал
I0625 16:46:58.844686 1 leaderelection.go:184] successfully acquired lease kube-system/kube-scheduler
E0625 16:47:28.846151 1 event.go:200] Server rejected event '&v1.Event{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"kube-scheduler.153b75120f0b301b", GenerateName:"", Namespace:"kube-system", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, InvolvedObject:v1.ObjectReference{Kind:"Endpoints", Namespace:"kube-system", Name:"kube-scheduler", UID:"4513c97b-77e5-11e8-9da6-52540083231b", APIVersion:"v1", ResourceVersion:"123985", FieldPath:""}, Reason:"LeaderElection", Message:"master-2.southbridge.ru became leader", Source:v1.EventSource{Component:"default-scheduler", Host:""}, FirstTimestamp:v1.Time{Time:time.Time{wall:0xbec46500b2589c1b, ext:12936456215678, loc:(*time.Location)(0xaabce00)}}, LastTimestamp:v1.Time{Time:time.Time{wall:0xbec46500b2589c1b, ext:12936456215678, loc:(*time.Location)(0xaabce00)}}, Count:1, Type:"Normal", EventTime:v1.MicroTime{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, Series:(*v1.EventSeries)(nil), Action:"", Related:(*v1.ObjectReference)(nil), ReportingController:"", ReportingInstance:""}': 'Timeout: request did not complete within allowed duration' (will not retry!)
E0625 16:51:57.646976 1 leaderelection.go:258] Failed to update lock: Unable to refresh the Webhook configuration: the server was unable to return a response in the time allotted, but may still be processing the request (get mutatingwebhookconfigurations.admissionregistration.k8s.io)
E0625 16:52:06.946364 1 leaderelection.go:258] Failed to update lock: Unable to refresh the Webhook configuration: the server was unable to return a response in the time allotted, but may still be processing the request (get mutatingwebhookconfigurations.admissionregistration.k8s.io)
E0625 16:52:06.946387 1 event.go:260] Could not construct reference to: '&v1.Endpoints{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}}, DeletionTimestamp:(*v1.Time)(nil), DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Initializers:(*v1.Initializers)(nil), Finalizers:[]string(nil), ClusterName:""}, Subsets:[]v1.EndpointSubset(nil)}' due to: 'selfLink was empty, can't make reference'. Will not report event: 'Normal' 'LeaderElection' 'master-2.southbridge.ru stopped leading'
I0625 16:52:06.946424 1 leaderelection.go:203] failed to renew lease kube-system/kube-scheduler: timed out waiting for the condition
E0625 16:52:06.946434 1 server.go:608] lost master
error: lost lease