Reporting resource status
This page describes how to view the status of resources managed by F5 NGINX Ingress Controller.
An Ingress resource status includes the address (an IP address or a DNS name), through which the hosts of that Ingress resource are publicly accessible.
You can see the address in the output of the kubectl get ingress command, in the ADDRESS column, as shown below:
kubectl get ingressesNAME           HOSTS              ADDRESS           PORTS     AGE
cafe-ingress   cafe.example.com   12.13.23.123      80, 443   2mNGINX Ingress Controller must be configured to report an Ingress status:
- Use the command-line flag -report-ingress-status.
- Define a source for an external address. This can be either of:
- A user defined address, specified in the external-status-addressConfigMap key.
- A Service of the type LoadBalancer configured with an external IP or address and specified by the -external-servicecommand-line flag.
 
- A user defined address, specified in the 
View the ConfigMap keys and Command-line arguments topics for more information.
NGINX Ingress Controller does not clear the status of Ingress resources when it is being shut down.
A VirtualServer or VirtualServerRoute resource includes the status field with information about the state of the resource and the IP address, through which the hosts of that resource are publicly accessible.
You can see the status in the output of the kubectl get virtualservers or kubectl get virtualserverroutes commands as shown below:
kubectl get virtualservers  NAME   STATE   HOST                   IP            PORTS      AGE
  cafe   Valid   cafe.example.com       12.13.23.123  [80,443]   34sTo see an external hostname address associated with a VirtualServer resource, use the -o wide option:
kubectl get virtualservers -o wide  NAME   STATE   HOST               IP    EXTERNALHOSTNAME                                                         PORTS      AGE
  cafe   Valid   cafe.example.com         ae430f41a1a0042908655abcdefghijkl-12345678.eu-west-2.elb.amazonaws.com   [80,443]   106sIf there are multiple addresses, only the first one is shown.
In order to see additional addresses or extra information about the Status of the resource, use the following command:
kubectl describe virtualserver <NAME>...
Status:
  External Endpoints:
    Ip:        12.13.23.123
    Ports:     [80,443]
  Message:  Configuration for cafe/cafe was added or updated
  Reason:   AddedOrUpdated
  State:    ValidThe following fields are reported in both VirtualServer and VirtualServerRoute status:
| Field | Description | Type | 
|---|---|---|
| State | Current state of the resource. Can be Valid,WarninganInvalid. For more information, refer to themessagefield. | string | 
| Reason | The reason of the last update. | string | 
| Message | Additional information about the state. | string | 
| ExternalEndpoints | A list of external endpoints for which the hosts of the resource are publicly accessible. | externalEndpoint | 
The ReferencedBy field is reported for the VirtualServerRoute status only:
| Field | Description | Type | 
|---|---|---|
| ReferencedBy | The VirtualServer that references this VirtualServerRoute. Format as namespace/name | string | 
| Field | Description | Type | 
|---|---|---|
| IP | The external IP address. | string | 
| Hostname | The external LoadBalancer Hostname address. | string | 
| Ports | A list of external ports. | string | 
NGINX Ingress Controller must be configured to report a VirtualServer or VirtualServerRoute status:
- If you want NGINX Ingress Controller to report the externalEndpoints, define a source for an external address (The rest of the fields will be reported without the external address configured). This can be:- A user defined address, specified in the external-status-addressConfigMap key.
- A Service of the type LoadBalancer configured with an external IP or address and specified by the -external-servicecommand-line flag.
 
- A user defined address, specified in the 
View the ConfigMap keys and Command-line arguments topics for more information.
NGINX Ingress Controller does not clear the status of VirtualServer and VirtualServerRoute resources when it is being shut down.
A Policy resource includes the status field with information about the state of the resource.
You can see the status in the output of the kubectl get policy command as shown below:
kubectl get policy  NAME              STATE   AGE
  webapp-policy     Valid   30sIn order to see additional addresses or extra information about the Status of the resource, use the following command:
kubectl describe policy <NAME>...
Status:
  Message:  Configuration for default/webapp-policy was added or updated
  Reason:   AddedOrUpdated
  State:    ValidThe following fields are reported in Policy status:
| Field | Description | Type | 
|---|---|---|
| State | Current state of the resource. Can be ValidorInvalid. For more information, refer to themessagefield. | string | 
| Reason | The reason of the last update. | string | 
| Message | Additional information about the state. | string | 
A TransportServer resource includes the status field with information about the state of the resource.
You can see the status in the output of the kubectl get transportserver command as shown below:
kubectl get transportserver  NAME      STATE   REASON           AGE
  dns-tcp   Valid   AddedOrUpdated   47mTo see additional addresses or extra information about the Status of the resource, use the following command:
kubectl describe transportserver <NAME>Status:
  Message:  Configuration for default/dns-tcp was added or updated
  Reason:   AddedOrUpdated
  State:    ValidThe following fields are reported in TransportServer status:
| Field | Description | Type | 
|---|---|---|
| State | Current state of the resource. Can be Valid,WarningorInvalid. For more information, refer to themessagefield. | string | 
| Reason | The reason of the last update. | string | 
| Message | Additional information about the state. | string |