ingress configuration for dashboard

后端 未结 4 1314
感情败类
感情败类 2020-12-31 09:12

I did nginx ingress controller tutorial from github and exposed kubernetes dashboard

kubernetes-dashboard   NodePort    10.233.53.77            4         


        
4条回答
  •  生来不讨喜
    2020-12-31 09:34

    As you pointed out, looks like nginx is proxying your https request to ipWhichEndsWith.249:8443, which is an HTTPS endpoint, using http as protocol.

    You should add the following annotation to your PodSpec:

    LATEST

    This annotation was added to replace the deprecated annotation since 0.18.0

    #2871 Add support for AJP protocol

    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
    

    DEPRECATED

    This annotation was deprecated in 0.18.0 and removed after the release of 0.20.0

    #3203 Remove annotations grpc-backend and secure-backend already deprecated

    nginx.ingress.kubernetes.io/secure-backends: "true"
    

    This should make nginx forward your request to the pods with https.

    Source: https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#backend-protocol

    Docs: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#backend-protocol

提交回复
热议问题