@@ -44,8 +44,8 @@ This command helps you launch an OpenShift master. Running
44
44
45
45
$ openshift start master
46
46
47
- will start an OpenShift master listening on all interfaces, launch an etcd server to store
48
- persistent data, and launch the Kubernetes system components. The server will run in the
47
+ will start an OpenShift master listening on all interfaces, launch an etcd server to store
48
+ persistent data, and launch the Kubernetes system components. The server will run in the
49
49
foreground until you terminate the process.
50
50
51
51
Note: starting OpenShift without passing the --master address will attempt to find the IP
@@ -169,6 +169,7 @@ func (o MasterOptions) StartMaster() error {
169
169
return nil
170
170
}
171
171
172
+ go daemon .SdNotify ("READY=1" )
172
173
select {}
173
174
174
175
return nil
@@ -359,7 +360,6 @@ func StartMaster(openshiftMasterConfig *configapi.MasterConfig) error {
359
360
}
360
361
361
362
openshiftConfig .Run ([]origin.APIInstaller {kubeConfig }, unprotectedInstallers )
362
- go daemon .SdNotify ("READY=1" )
363
363
364
364
} else {
365
365
_ , kubeConfig , err := configapi .GetKubeClient (openshiftMasterConfig .MasterClients .ExternalKubernetesKubeConfig )
@@ -372,7 +372,6 @@ func StartMaster(openshiftMasterConfig *configapi.MasterConfig) error {
372
372
}
373
373
374
374
openshiftConfig .Run ([]origin.APIInstaller {proxy }, unprotectedInstallers )
375
- go daemon .SdNotify ("READY=1" )
376
375
}
377
376
378
377
glog .Infof ("Using images from %q" , openshiftConfig .ImageFor ("<component>" ))
@@ -394,23 +393,30 @@ func StartMaster(openshiftMasterConfig *configapi.MasterConfig) error {
394
393
// Start these first, because they provide credentials for other controllers' clients
395
394
openshiftConfig .RunServiceAccountsController ()
396
395
openshiftConfig .RunServiceAccountTokensController ()
396
+ // used by admission controllers
397
+ openshiftConfig .RunServiceAccountPullSecretsControllers ()
398
+ openshiftConfig .RunSecurityAllocationController ()
397
399
398
400
if kubeConfig != nil {
399
401
_ , rcClient , err := openshiftConfig .GetServiceAccountClients (openshiftConfig .ReplicationControllerServiceAccount )
400
402
if err != nil {
401
403
glog .Fatalf ("Could not get client for replication controller: %v" , err )
402
404
}
403
405
406
+ // called by admission control
407
+ kubeConfig .RunResourceQuotaManager ()
408
+
409
+ // no special order
410
+ kubeConfig .RunNodeController ()
404
411
kubeConfig .RunScheduler ()
405
412
kubeConfig .RunReplicationController (rcClient )
406
413
kubeConfig .RunEndpointController ()
407
- kubeConfig .RunNodeController ()
408
- kubeConfig .RunResourceQuotaManager ()
409
414
kubeConfig .RunNamespaceController ()
410
415
kubeConfig .RunPersistentVolumeClaimBinder ()
411
416
kubeConfig .RunPersistentVolumeClaimRecycler ()
412
417
}
413
418
419
+ // no special order
414
420
openshiftConfig .RunBuildController ()
415
421
openshiftConfig .RunBuildPodController ()
416
422
openshiftConfig .RunBuildImageChangeTriggerController ()
@@ -421,8 +427,6 @@ func StartMaster(openshiftMasterConfig *configapi.MasterConfig) error {
421
427
openshiftConfig .RunDeploymentImageChangeTriggerController ()
422
428
openshiftConfig .RunImageImportController ()
423
429
openshiftConfig .RunOriginNamespaceController ()
424
- openshiftConfig .RunSecurityAllocationController ()
425
- openshiftConfig .RunServiceAccountPullSecretsControllers ()
426
430
openshiftConfig .RunSDNController ()
427
431
}()
428
432
}
0 commit comments