momo's Blog.

使用cert-manager自动配置证书

字数统计: 90阅读时长: 1 min
2023/12/14 Share

安装

建议跟着官方文档来

1
helm -n cert-manager install cert-manager jetstack/cert-manager --version v1.13.3 --set prometheus.enabled=false

配置

配置Issuer

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt
namespace: cert-manager
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email:
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt
# Enable the HTTP-01 challenge provider
solvers:
- http01:
ingress:
class: nginx
CATALOG
  1. 1. 安装
  2. 2. 配置
    1. 2.1. 配置Issuer