From fe97b37384e41b4cc7deab9d09e46d594de163d4 Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Sun, 17 Mar 2024 16:14:29 +0800 Subject: [PATCH] feat: tls support --- chart/templates/ingress.yaml | 2 ++ chart/values.yaml | 3 ++- script/cert.yaml | 11 +++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 script/cert.yaml diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 0838110..29aa57b 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -15,6 +15,8 @@ metadata: release: jiaozifs-ui spec: ingressClassName: {{.Values.ingress_name}} + tls: + - secretName: {{.Values.cert}} rules: - host: cloud.jiaozifs.com http: diff --git a/chart/values.yaml b/chart/values.yaml index 5d7168f..74d746c 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -4,4 +4,5 @@ replicas: 1 ingress_name: nginx api_url: http://api.jiaozifs.com/api/v1 -tag: latest \ No newline at end of file +tag: latest +cert: cloud-jiaozifs-com-tls diff --git a/script/cert.yaml b/script/cert.yaml new file mode 100644 index 0000000..bb135ff --- /dev/null +++ b/script/cert.yaml @@ -0,0 +1,11 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: cloud-jiaozifs-com-certificate +spec: + secretName: cloud-jiaozifs-com-tls + issuerRef: + name: letsencrypt-prod + kind: ClusterIssuer + dnsNames: + - cloud.jiaozifs.com