@@ -14,17 +14,33 @@ Troubleshooting the |k8s-op-short|
1414
1515.. _get-resource-status:
1616
17- Get Status of MongoDB Resource
18- ------------------------------
17+ Get Status of a Deployed Resource
18+ ---------------------------------
1919
20- To find the status of a MongoDB Resource (replica set, sharded cluster, or standalone), invoke this command:
20+ To find the status of a resource deployed with the |k8s-op-short|,
21+ invoke one of the following commands:
2122
22- .. code-block:: sh
23+ - For |onprem| resource deployments:
24+
25+ .. code-block:: sh
26+
27+ kubectl get <resource-name> -n <namespace> -o yaml
28+
29+ The ``status.applicationDatabase.phase`` field displays the
30+ Application Database resource deployment status. The
31+ ``status.opsManager.phase`` field displays the |onprem| resource
32+ deployment status.
2333
24- kubectl get mdb <resourcename> -n <namespace> -o yaml -w
34+ - For MongoDB resource deployments:
2535
26- The command's response describes the status of the resource using the
27- following key-value pairs:
36+ .. code-block:: sh
37+
38+ kubectl get mdb <resource-name> -n <namespace> -o yaml
39+
40+ The ``status.phase`` field displays the MongoDB resource deployment
41+ status.
42+
43+ The following key-value pairs describe the resource deployment statuses:
2844
2945.. list-table::
3046 :header-rows: 1
@@ -33,9 +49,10 @@ following key-value pairs:
3349 * - Key
3450 - Value
3551
36- * - message
37- - Error message explaining why the resource is in a failed state.
38- * - phase
52+ * - ``message``
53+ - Message explaining why the resource is in a ``Pending``
54+ or ``Failed`` state.
55+ * - ``phase``
3956 -
4057 .. list-table::
4158 :header-rows: 1
@@ -44,17 +61,42 @@ following key-value pairs:
4461 * - Status
4562 - Meaning
4663
47- * - Pending
48- - Resource is transitioning between two states.
49- * - Running
50- - Resource has completed reconciliation successfully.
51- * - Failed
52- - Resource had failures.
64+ * - ``Pending``
65+ - The |k8s-op-short| is unable to reconcile the resource
66+ deployment state. This happens when a reconciliation times
67+ out or if the |k8s-op-short| requires you to take action
68+ for the resource to enter a running state.
69+
70+ If a resource is pending because a reconciliation timed
71+ out, the |k8s-op-short| attempts to reconcile the resource
72+ state in 10 seconds.
5373
54- * - lastTransition
74+ * - ``Reconciling``
75+ - The |k8s-op-short| is reconciling the resource state.
76+
77+ Resources enter this state after you create or update them
78+ or if the |k8s-op-short| is attempting to reconcile a
79+ resource previously in a ``Pending`` or ``Failed`` state.
80+
81+ The |k8s-op-short| attempts to reconcile the resource
82+ state in 10 seconds.
83+
84+ * - ``Running``
85+ - The resource is running properly.
86+
87+ * - ``Failed``
88+ - The resource is not running properly. The ``message``
89+ field provides additional details.
90+
91+ The |k8s-op-short| attempts to reconcile the resource
92+ state in 10 seconds.
93+
94+ * - ``lastTransition``
5595 - |iso8601-time| when the last reconciliation happened.
56- * - link
96+
97+ * - ``link``
5798 - Deployment |url| in |mms|.
99+
58100 * - Resource specific fields
59101 - For descriptions of these fields, see
60102 :doc:`/reference/k8s-operator-specification`.
@@ -66,7 +108,7 @@ following key-value pairs:
66108
67109 .. code-block:: sh
68110
69- kubectl get mdb my-replica-set -n developer -o yaml -w
111+ kubectl get mdb my-replica-set -n developer -o yaml
70112
71113 If ``my-replica-set`` is running, you should see:
72114
0 commit comments