[英]Unable to use cert-manager and nginx ingress controller with SSL termination
I am trying out nginx-ingress on GKE with SSL termination for use cases.我正在 GKE 上尝试使用 SSL 终止的 nginx-ingress 用例。 I've traveled to millions of blogs on this process which uses cert-manager with nginx ingress controller but none of them worked in my case.我已经访问了数百万个关于此过程的博客,这些博客使用 cert-manager 和 nginx 入口控制器,但没有一个在我的情况下有效。
This certainly means I am doing something wrong.这当然意味着我做错了什么。 But I am not sure what.但我不确定是什么。 Here's what I did:这是我所做的:
Result:结果:
After describing the nginx ingress, the events areas shows none
.描述 nginx 入口后,事件区域显示none
。 That means everything is completely blank.这意味着一切都是完全空白的。 Not a single thing happened for requesting certs, http validation, etc.请求证书、http 验证等没有发生任何事情。
nginx ingress: nginx入口:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: my-ingress
annotations:
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/cluster-issuer: letsencrypt-staging
kubernetes.io/tls-acme: 'true'
spec:
rules:
-
host: wptls.ml
http: {paths: [{path: /, backend: {serviceName: web, servicePort: 80}}]}
tls:
-
secretName: tls-staging-cert
hosts: [wptls.ml]
clusterissuer.yml: clusterissuer.yml:
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: 'https://acme-staging-v02.api.letsencrypt.org/directory'
email: xyz@gmail.com
privateKeySecretRef:
name: letsencrypt-sec-staging
http01: {}
I am not sure if there's anything else which needs to be done.我不确定是否还有其他事情需要做。
Try Ingress extra annotation likes尝试 Ingress 额外的注释喜欢
nginx.ingress.kubernetes.io/ssl-passthrough: "true" nginx.ingress.kubernetes.io/secure-backends: "true" https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.