Skip to content

Commit

Permalink
Merge pull request #142 from GitDataAI/feat/tls_support
Browse files Browse the repository at this point in the history
feat: tls support
  • Loading branch information
hunjixin authored Mar 17, 2024
2 parents caab776 + fe97b37 commit d082666
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
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-ui
spec:
ingressClassName: {{.Values.ingress_name}}
tls:
- secretName: {{.Values.cert}}
rules:
- host: cloud.jiaozifs.com
http:
Expand Down
3 changes: 2 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
replicas: 1
ingress_name: nginx
api_url: http://api.jiaozifs.com/api/v1
tag: latest
tag: latest
cert: cloud-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: cloud-jiaozifs-com-certificate
spec:
secretName: cloud-jiaozifs-com-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- cloud.jiaozifs.com

0 comments on commit d082666

Please sign in to comment.