Ingress
Overview
See the official documentation.
Ingress kind
Different resources kind
provide Ingress capabilities.
- Default Kubernetes Ingress
- Official documentation
IngressRoute
is a Traefik CRD- Official documentation
Operations
List the ingress resources
Current namespace:
kubectl get ingress
Specific namespace:
kubectl -n ${namespace} get ingress
All namespaces:
kubectl get -A ingress
Current namespace:
kubectl get ingressroute
Specific namespace:
kubectl -n ${namespace} get ingressroute
All namespaces:
kubectl get -A ingressroute
Create an ingress
Order of operations
An Ingress is used to access a Service.
If your Ingress does not seems to work, be sure you have a proper Service.
Current namespace:
kubectl apply -f ${file}
Specific namespace:
kubectl -n ${namespace} apply -f ${file}
Example ingress file (i.e. ${file}
):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|