How does one restart Openshift Origin master on Centos 7?

MirroredFate picture MirroredFate · Sep 14, 2018 · Viewed 7.9k times · Source

Openshift origin was installed via the ansible playbooks.

According to this documentation, the correct command to restart is:

$ systemctl restart atomic-openshift-master-api atomic-openshift-master-controllers

However, this just results in:

Failed to restart atomic-openshift-master-api.service: Unit not found.
Failed to restart atomic-openshift-master-controllers.service: Unit not found.

What is the correct way to restart openshift origin (okd) after installing via ansible on Centos7?

Answer

DReis picture DReis · Sep 26, 2018

If you get the following error:

bash: master-restart: command not found

try:

/usr/local/bin/master-restart