@@ -14,17 +14,33 @@ Troubleshooting the |k8s-op-short|
14
14
15
15
.. _get-resource-status:
16
16
17
- Get Status of MongoDB Resource
18
- ------------------------------
17
+ Get Status of a Deployed Resource
18
+ ---------------------------------
19
19
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:
21
22
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.
23
33
24
- kubectl get mdb <resourcename> -n <namespace> -o yaml -w
34
+ - For MongoDB resource deployments:
25
35
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:
28
44
29
45
.. list-table::
30
46
:header-rows: 1
@@ -33,9 +49,10 @@ following key-value pairs:
33
49
* - Key
34
50
- Value
35
51
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``
39
56
-
40
57
.. list-table::
41
58
:header-rows: 1
@@ -44,17 +61,42 @@ following key-value pairs:
44
61
* - Status
45
62
- Meaning
46
63
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.
53
73
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``
55
95
- |iso8601-time| when the last reconciliation happened.
56
- * - link
96
+
97
+ * - ``link``
57
98
- Deployment |url| in |mms|.
99
+
58
100
* - Resource specific fields
59
101
- For descriptions of these fields, see
60
102
:doc:`/reference/k8s-operator-specification`.
@@ -66,7 +108,7 @@ following key-value pairs:
66
108
67
109
.. code-block:: sh
68
110
69
- kubectl get mdb my-replica-set -n developer -o yaml -w
111
+ kubectl get mdb my-replica-set -n developer -o yaml
70
112
71
113
If ``my-replica-set`` is running, you should see:
72
114
0 commit comments