1.3.3. SubscriptionReport アプリケーションレベル
非推奨: アプリケーション サブスクリプション と、アプリケーションサブスクリプションを使用するすべてのプロセスが非推奨になりました。更新された機能は、GitOps の概要 を参照してください。
各アプリケーションのアプリケーションレベルの 1 つである subscriptionReport が、ハブクラスターの appsub namespace の <namespace:<your-appsub-namespace> にあり、以下の情報が含まれています。
- 各マネージドクラスターのアプリケーション全体のステータス
- アプリケーションのすべてのリソースのリスト
- クラスターの合計数を含むレポートサマリー
-
アプリケーションがステータスにあるクラスターの合計数 (
deployed、failed、propagationFailed、およびinProgress) のレポートサマリー。
注記: inProcess ステータスは、合計マイナス deployed、さらに failed `, と `propagationFailed をマイナスします。
以下の SubscriptionReport のサンプル YAML ファイルを参照してください。
apiVersion: apps.open-cluster-management.io/v1alpha1
kind: subscriptionReport
metadata:
labels:
apps.open-cluster-management.io/hosting-subscription: <your-appsub-namespace>.<your-appsub-name>
name: <your-appsub-name>
namespace: <your-appsub-namespace>
reportType: Application
resources:
- apiVersion: v1
kind: Service
name: redis-master2
namespace: playback-ns-2
- apiVersion: apps/v1
kind: Deployment
name: redis-master2
namespace: playback-ns-2
- apiVersion: v1
kind: Service
name: redis-slave2
namespace: playback-ns-2
- apiVersion: apps/v1
kind: Deployment
name: redis-slave2
namespace: playback-ns-2
- apiVersion: v1
kind: Service
name: frontend2
namespace: playback-ns-2
- apiVersion: apps/v1
kind: Deployment
name: frontend2
namespace: playback-ns-2
results:
- result: deployed
source: cluster-1 //cluster 1 status
timestamp:
nanos: 0
seconds: 0
- result: failed
source: cluster-3 //cluster 2 status
timestamp:
nanos: 0
seconds: 0
- result: propagationFailed
source: cluster-4 //cluster 3 status
timestamp:
nanos: 0
seconds: 0
summary:
deployed: 8
failed: 1
inProgress: 0
propagationFailed: 1
clusters: 10