I have this ingress and service created on my Kubernetes cluster
apiVersion: v1
metadata:
name: google-storage-buckets
spec:
type: ExternalName
externalName: storage.googleapis.com
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: proxy-assets-ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /kinto-static-websites/gatsby/public/$1
nginx.ingress.kubernetes.io/upstream-vhost: "storage.googleapis.com"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
rules:
- host: gatsby.vegeta.kintohub.net
http:
paths:
- path: /(.*)$
backend:
serviceName: google-storage-buckets
servicePort: 443
However, this works only if I add index.html after gatsby.vegeta.kintohub.net.
Same if I go on gatsby.vegeta.kintohub.net/page-2.
How could I make this work plz?
Thanks