Show–IngressRule - anongitmous/k8sShell GitHub Wiki
Returns detailed information about ingress rules.
Syntax
Show-IngressRule
-Ingresses <Mtf.Kubernetes.Models.V1K8sBetaIngressBase[]>
[<CommonParameters>]
Description
By default, the Mtf.Kubernetes.V1K8sBetaIngress object returned by the Get–Ingress cmdlet returns fields that list whitelist, rule, and path count fields so that there's a single record per ingress, but it does not give all details. Piping those objects into this cmdlet gives detailed rule information with potentially multiple records per ingress object.
This is essentially a utility cmdlet: what it achieves can be achieved via a PowerShell script that makes use of the output of Get–Ingress.
See the example output.
Examples
ℹ️ See A Note about the Examples
1. Give ingress rule details for every ingress object in the currently configured namespace
Get-Ingress | Show-IngressRule
- Using aliasing, the above can be shortened to
ksgi | kssir
Parameters
-Ingresses
- The output from a call to Get–Ingress.
| Type: | Mtf.Kubernetes.Models.V1K8sBetaIngressBase[] |
| Aliases: | |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Outputs
Mtf.Kubernetes.Models.V1K8sBetaIngressRule
Example
Notes
K8sShell includes the following alias for Show-IngressRule:
- kssir