14.7. ホステッドクラスターと Hosted Control Plane のリコンシリエーションの一時停止
クラスターインスタンス管理者は、ホステッドクラスターと Hosted Control Plane のリコンシリエーションを一時停止できます。etcd データベースをバックアップおよび復元するときや、ホステッドクラスターまたは Hosted Control Plane の問題をデバッグする必要があるときは、リコンシリエーションを一時停止することができます。
手順
ホステッドクラスターと Hosted Control Plane のリコンシリエーションを一時停止するには、
HostedCluster
リソースのpausedUntil
フィールドを設定します。特定の時刻までリコンシリエーションを一時停止するには、次のコマンドを入力します。
oc patch -n <hosted_cluster_namespace> \ hostedclusters/<hosted_cluster_name> \ -p '{"spec":{"pausedUntil":"<timestamp>"}}' \ --type=merge
$ oc patch -n <hosted_cluster_namespace> \ hostedclusters/<hosted_cluster_name> \ -p '{"spec":{"pausedUntil":"<timestamp>"}}' \ --type=merge
1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- RFC339 形式でタイムスタンプを指定します (例:
2024-03-03T03:28:48Z
)。指定の時間が経過するまで、リコンシリエーションが一時停止します。
リコンシリエーションを無期限に一時停止するには、次のコマンドを入力します。
oc patch -n <hosted_cluster_namespace> \ hostedclusters/<hosted_cluster_name> \ -p '{"spec":{"pausedUntil":"true"}}' \ --type=merge
$ oc patch -n <hosted_cluster_namespace> \ hostedclusters/<hosted_cluster_name> \ -p '{"spec":{"pausedUntil":"true"}}' \ --type=merge
Copy to Clipboard Copied! Toggle word wrap Toggle overflow HostedCluster
リソースからフィールドを削除するまで、リコンシリエーションは一時停止されます。HostedCluster
リソースの一時停止リコンシリエーションフィールドが設定されると、そのフィールドは関連付けられたHostedControlPlane
リソースに自動的に追加されます。
pausedUntil
フィールドを削除するには、次の patch コマンドを入力します。oc patch -n <hosted_cluster_namespace> \ hostedclusters/<hosted_cluster_name> \ -p '{"spec":{"pausedUntil":null}}' \ --type=merge
$ oc patch -n <hosted_cluster_namespace> \ hostedclusters/<hosted_cluster_name> \ -p '{"spec":{"pausedUntil":null}}' \ --type=merge
Copy to Clipboard Copied! Toggle word wrap Toggle overflow