code: func (c *Controller) UpdateKubernetesService(reconcile bool) error {
  	// Update service & endpoint records.
  	// TODO: when it becomes possible to change this stuff,
  	// stop polling and start watching.
  	// TODO: add endpoints of all replicas, not just the elected master.
  	if err := createNamespaceIfNeeded(c.NamespaceClient, metav1.NamespaceDefault); err != nil {
  		return err
  	}
  
  	servicePorts, serviceType := createPortAndServiceSpec(c.ServicePort, c.PublicServicePort, c.KubernetesServiceNodePort, "https", c.ExtraServicePorts)
  	if err := c.CreateOrUpdateMasterServiceIfNeeded(kubernetesServiceName, c.ServiceIP, servicePorts, serviceType, reconcile); err != nil {
  		return err
  	}
  	endpointPorts := createEndpointPortSpec(c.PublicServicePort, "https", c.ExtraEndpointPorts)
  	if err := c.EndpointReconciler.ReconcileEndpoints(kubernetesServiceName, c.PublicIP, endpointPorts, reconcile); err != nil {
  		return err
  	}
  	return nil
  }
docs: // UpdateKubernetesService attempts to update the default Kube service.