10.3. ホステッドクラスターと 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=merge1 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=mergeCopy 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=mergeCopy to Clipboard Copied! Toggle word wrap Toggle overflow