Difference between revisions of "Kind: Ingress"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
[[helm install my-release ingress-nginx/ingress-nginx]] | [[helm install my-release ingress-nginx/ingress-nginx]] | ||
+ | |||
+ | |||
+ | == Official example == | ||
+ | apiVersion: networking.k8s.io/v1 | ||
+ | [[kind:]] Ingress | ||
+ | metadata: | ||
+ | name: minimal-ingress | ||
+ | annotations: | ||
+ | [[nginx.ingress.kubernetes.io]]/rewrite-target: / | ||
+ | spec: | ||
+ | ingressClassName: nginx-example | ||
+ | rules: | ||
+ | - http: | ||
+ | paths: | ||
+ | - path: /testpath | ||
+ | pathType: Prefix | ||
+ | backend: | ||
+ | service: | ||
+ | name: test | ||
+ | port: | ||
+ | number: 80 | ||
+ | |||
== Examples == | == Examples == |
Revision as of 14:34, 10 October 2023
v1.19 (Aug 2020)
- https://kubernetes.io/docs/concepts/services-networking/ingress/
- https://kind.sigs.k8s.io/docs/user/ingress/
helm install my-release ingress-nginx/ingress-nginx
Official example
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: minimal-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec: ingressClassName: nginx-example rules: - http: paths: - path: /testpath pathType: Prefix backend: service: name: test port: number: 80
Examples
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: foobar spec: rules: - host: foobar.example.com http: paths: - backend: serviceName: foo servicePort: 8080 path: /
apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: nginx name: example namespace: foo spec: rules: - host: www.example.com http: paths: - backend: serviceName: exampleService servicePort: 80 path: / # This section is only required if TLS is to be enabled for the Ingress tls: - hosts: - www.example.com secretName: example-tls
.../... status: loadBalancer: ingress: - hostname: a324242432.elb.ap-southeast-1.amazonaws.com .../...
Related terms
- Kubernetes: Ingress controllers
kubectl get ingress
kind: ConfigMap
kind: IngressClass
pathType: ImplementationSpecific
See also
kind:
[Pod | Ingress | ClusterConfiguration
|Config | ConfigMap | ServiceAccount | Deployment | List | Secret | Status ], spec: metadata: data:
- Ingress controllers, NGINX Ingress Controller,
minikube addons enable ingress
,kubectl get ingress, kubectl get ingressclass, kubectl describe ingress
,Ingress:
, Ingress API, AWS Load Balancer Controller, Envoy Proxy, GKE Ingress, Kubernetes Gateway API,ingress.k8s.aws, ingresses.networking.k8s.io
,kind: Ingress
: (tls:, hosts:
),SuccessfullyReconciled
Advertising: