Revert "Apply runtime class for kube-apiserver when installing ca cert"

This reverts commit 3bf25e423c.
There is an issue when installing subclouds where kubeadm tries
to execute kubernetes commands while kube-apiserver is restarting.
The cause of the restart is executing the runtime class introduced
in the reverted commit. The issue is intermittent.

Change-Id: I332ea9257de3fdfa327c5405cb45bb414b422c23
Closes-Bug: 1955744
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
(cherry picked from commit f671ec5ab6)
This commit is contained in:
Jerry Sun 2022-01-07 13:05:12 -05:00
parent 6437316312
commit aeec7da431
1 changed files with 0 additions and 11 deletions

View File

@ -12603,17 +12603,6 @@ class ConductorManager(service.PeriodicService):
config_uuid,
config_dict,
force=True)
personalities = [constants.CONTROLLER]
config_uuid = self._config_update_hosts(context, personalities)
config_dict = {
"personalities": personalities,
"classes": ['platform::kubernetes::master::apiserver::runtime']
}
self._config_apply_runtime_manifest(context,
config_uuid,
config_dict)
elif mode == constants.CERT_MODE_DOCKER_REGISTRY:
LOG.info("Docker registry certificate install")
# docker registry requires a PKCS1 key for the token server