Skip to content

Commit

Permalink
fix: cert support (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin authored Mar 17, 2024
1 parent cf65152 commit fac84ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ metadata:
release: jiaozifs-api
spec:
ingressClassName: {{.Values.ingress_name}}
tls:
- secretName: {{.Values.cert}}
rules:
- host: api.jiaozifs.com
http:
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ ingress_name: nginx
log_level: info
claim_name: jiaozifs-home
tag: latest
cert: api-jiaozifs-com-tls
11 changes: 11 additions & 0 deletions script/cert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: api-jiaozifs-com-certificate
spec:
secretName: api-jiaozifs-com-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- api.jiaozifs.com

0 comments on commit fac84ce

Please sign in to comment.