You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-web/configuration/global-configuration/reporting-resources-status.md
+41-1Lines changed: 41 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,4 +110,44 @@ The Ingress controller must be configured to report a VirtualServer or VirtualSe
110
110
111
111
See the docs about [ConfigMap keys](/nginx-ingress-controller/configuration/global-configuration/configmap-resource) and [Command-line arguments](/nginx-ingress-controller/configuration/global-configuration/command-line-arguments).
112
112
113
-
Notes: The Ingress controller does not clear the status of VirtualServer and VirtualServerRoute resources when it is being shut down.
113
+
Notes: The Ingress controller does not clear the status of VirtualServer and VirtualServerRoute resources when it is being shut down.
114
+
115
+
## Policy Resources
116
+
117
+
A Policy resource includes the status field with information about the state of the resource.
118
+
You can see the status in the ouput of the `kubectl get policy` command as shown below:
119
+
```
120
+
$ kubectl get policy
121
+
NAME STATE AGE
122
+
webapp-policy Valid 30s
123
+
```
124
+
In order to see additional addresses or extra information about the `Status` of the resource, use the following command:
125
+
```
126
+
$ kubectl describe policy <NAME>
127
+
. . .
128
+
Status:
129
+
Message: Configuration for default/webapp-policy was added or updated
130
+
Reason: AddedOrUpdated
131
+
State: Valid
132
+
```
133
+
134
+
### Status Specification
135
+
The following fields are reported in Policy status:
136
+
137
+
```eval_rst
138
+
.. list-table::
139
+
:header-rows: 1
140
+
141
+
* - Field
142
+
- Description
143
+
- Type
144
+
* - ``State``
145
+
- Current state of the resource. Can be ``Valid`` or ``Invalid``. For more information, refer to the ``message`` field.
0 commit comments