Created
September 13, 2021 10:23
-
-
Save dobegor/74ecb1972c6f0c7a7271894fa785f1e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/cors-allow-headers: Content-Type | |
nginx.ingress.kubernetes.io/cors-allow-methods: POST, GET, OPTIONS | |
nginx.ingress.kubernetes.io/cors-allow-origin: http://foo.example | |
nginx.ingress.kubernetes.io/cors-expose-headers: X-Custom-Header | |
nginx.ingress.kubernetes.io/cors-max-age: "86400" | |
nginx.ingress.kubernetes.io/enable-cors: "true" | |
nginx.ingress.kubernetes.io/rewrite-target: /pet | |
creationTimestamp: null | |
name: petstore-pet | |
namespace: default | |
spec: | |
ingressClassName: nginx | |
rules: | |
- http: | |
paths: | |
- backend: | |
service: | |
name: petstore | |
port: | |
number: 80 | |
path: /petstore/api/v3/pet | |
pathType: Exact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment