We are trying to access docs stored in S3 bucket located outside the Kubernetes Cluster using an Ingress. Here are the k8s service and ingress, getting 404 error response with message “The specified bucket does not exist” with bucket name being k8s cluster DNS name.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
konghq.com/strip-path: "true"
kubernetes.io/ingress.class: kong
name: s3access
namespace: tst
spec:
rules:
- http:
paths:
- backend:
serviceName: s3access
servicePort: 80
path: /foo/*
apiVersion: v1
kind: Service
metadata:
name: s3access
namespace: tst
spec:
externalName: online-docs01.s3-website-us-west-2.amazonaws.com
ports:
- protocol: TCP
targetPort: 80
type: ExternalName