k8s自动申请证书

Automated Certificate Management with cert-manager

cert-manager automatically requests missing or expired certificates from a range of supported issuers (including Let's Encrypt) by monitoring ingress resources.

To set up cert-manager you should take a look at this full example.

To enable it for an ingress resource you have to deploy cert-manager, configure a certificate issuer update the manifest:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-demo
  annotations:
    cert-manager.io/issuer: "letsencrypt-staging" # Replace this with a production issuer once you've tested it
    [..]
spec:
  tls:
    - hosts:
        - ingress-demo.example.com
      secretName: ingress-demo-tls
    [...]
tag(s): none
show comments · back · home
Edit with markdown

已有 3 条评论

  1. gszwugdmdp

    文章中的实用建议和操作指南,让读者受益匪浅,值得珍藏。

    gszwugdmdp March 1st, 2025 at 12:50 am回复
  2. isdbiexhet

    修辞手法运用娴熟,比喻贴切,感染力强。

    isdbiexhet March 2nd, 2025 at 01:19 pm回复
  3. tggzdcqijj

    文章中的实用建议和操作指南,让读者受益匪浅,值得珍藏。

    tggzdcqijj March 4th, 2025 at 06:53 pm回复