ingress-nginx-helm/examples/customization/configuration-snippets/ingress.yaml

21 lines
457 B
YAML
Raw Permalink Normal View History

2021-08-21 20:43:04 +00:00
apiVersion: networking.k8s.io/v1
2018-04-27 00:09:55 +00:00
kind: Ingress
metadata:
name: nginx-configuration-snippet
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Request-Id: $req_id";
spec:
2021-11-09 15:45:04 +00:00
ingressClassName: nginx
2018-04-27 00:09:55 +00:00
rules:
- host: custom.configuration.com
http:
paths:
2021-11-02 00:13:54 +00:00
- path: /
pathType: Prefix
backend:
service:
name: http-svc
port:
number: 80