Skip to content

Commit

Permalink
add cert-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzongshu committed Apr 16, 2021
1 parent c5ba5c4 commit c4fb1be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Cert-Manager证书管理.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ cfssl print-defaults csr > ca-csr.json

vim ca-csr.json
{
"CN": "stg-kubernetes-dashboard.myhll.cn",
"CN": "stg-kubernetes-dashboard.czs.cn",
"key": {
"algo": "ecdsa",
"size": 256
Expand Down Expand Up @@ -280,15 +280,15 @@ spec:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: stg-kubernetes-dashboard.myhll.cn
name: stg-kubernetes-dashboard.czs.cn
namespace: kubernetes-dashboard
spec:
dnsNames:
- stg-kubernetes-dashboard.myhll.cn
- stg-kubernetes-dashboard.czs.cn
issuerRef:
kind: ClusterIssuer
name: ca-issuer
secretName: stg-kubernetes-dashboard.myhll.cn-tls
secretName: stg-kubernetes-dashboard.czs.cn-tls
```
最后创建Ingress规则
Expand All @@ -304,10 +304,10 @@ metadata:
spec:
tls:
- hosts:
- stg-kubernetes-dashboard.myhll.cn
secretName: stg-kubernetes-dashboard.myhll.cn-tls
- stg-kubernetes-dashboard.czs.cn
secretName: stg-kubernetes-dashboard.czs.cn-tls
rules:
- host: stg-kubernetes-dashboard.myhll.cn
- host: stg-kubernetes-dashboard.czs.cn
http:
paths:
- path: /
Expand Down

0 comments on commit c4fb1be

Please sign in to comment.