Skip to content

Commit 2e055cd

Browse files
authored
Merge pull request #56947 from lahinson/hcp-restore-cp-components-osdocs-5328
[OSDOCS-5328]: Adding procedure to restart hosted control plane components
2 parents b489c62 + a171cc2 commit 2e055cd

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

hosted_control_planes/hcp-troubleshooting.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ toc::[]
99
If you encounter issues with {hcp}, see the following information to guide you through troubleshooting.
1010

1111
include::modules/hosted-control-planes-troubleshooting.adoc[leveloffset=+1]
12-
13-
//restarting hosted control plane components
12+
include::modules/hosted-restart-hcp-components.adoc[leveloffset=+1]
1413
include::modules/hosted-control-planes-pause-reconciliation.adoc[leveloffset=+1]
15-
1614
include::modules/scale-down-data-plane.adoc[leveloffset=+1]
1715

1816
[role="_additional-resources"]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Module included in the following assembly:
2+
//
3+
// * hosted_control_planes/index.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="hosted-restart-hcp-components_{context}"]
7+
= Restarting hosted control plane components
8+
9+
If you are an administrator for hosted control planes, you can use the `hypershift.openshift.io/restart-date` annotation to restart all control plane components for a particular `HostedCluster` resource. For example, you might need to restart control plane components for certificate rotation.
10+
11+
.Procedure
12+
13+
To restart a control plane, annotate the `HostedCluster` resource by entering the following command:
14+
15+
[source,terminal]
16+
----
17+
$ oc annotate hostedcluster -n <hosted_cluster_namespace> <hosted_cluster_name> hypershift.openshift.io/restart-date=$(date --iso-8601=seconds)
18+
----
19+
20+
.Verification
21+
22+
The control plane is restarted whenever the value of the anonotation changes. The `date` command in the example serves as the source of a unique string. The annotation is treated as a string, not a timestamp.
23+
24+
The following components are restarted:
25+
26+
* catalog-operator
27+
* certified-operators-catalog
28+
* cluster-api
29+
* cluster-autoscaler
30+
* cluster-policy-controller
31+
* cluster-version-operator
32+
* community-operators-catalog
33+
* control-plane-operator
34+
* hosted-cluster-config-operator
35+
* ignition-server
36+
* ingress-operator
37+
* konnectivity-agent
38+
* konnectivity-server
39+
* kube-apiserver
40+
* kube-controller-manager
41+
* kube-scheduler
42+
* machine-approver
43+
* oauth-openshift
44+
* olm-operator
45+
* openshift-apiserver
46+
* openshift-controller-manager
47+
* openshift-oauth-apiserver
48+
* packageserver
49+
* redhat-marketplace-catalog
50+
* redhat-operators-catalog

0 commit comments

Comments
 (0)