【发布时间】:2020-02-05 17:56:36
【问题描述】:
我在公开班有以下服务
apiVersion: v1
kind: Service
metadata:
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v1
kind: Mapping
name: _api_minio
service: "http://minio-svc:9000"
prefix: /api/minio/
rewrite: /
bypass_auth: true
host: xxxx
add_response_headers:
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Frame-Options: SAMEORIGIN
creationTimestamp: '2020-01-09T15:10:34Z'
labels:
platform: xxx
name: minio
namespace: xxx
resourceVersion: 'xxxxx'
selfLink: /api/v1/namespaces/services/minio
uid: 2f7619a0-32f2-11ea-9dcc-xxxxxxxx
spec:
clusterIP:xxxxx
ports:
- port: 80
protocol: TCP
targetPort: 80
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
所以这是一项服务,它将外部请求代理到我们的对象存储的内部 minio,但是一旦我尝试访问我得到的对象的 url:
The request signature we calculated does not match the signature you provided. Check your key and signing method.
上面的服务似乎没有通过浏览器发送的所有标头。 谁能阐明我如何将所有进入服务的标头传递给内部服务,在这种情况下是 minio?
【问题讨论】:
-
您使用的是大使吗?也许大使没有传递标题。
-
@ArghyaSadhu 是的,我正在使用大使,所以我怎样才能让大使传递标题?我对大使知之甚少
标签: kubernetes kubernetes-helm kubernetes-ingress kubernetes-pod kubernetes-service