Skip to content

Commit

Permalink
feat: use letsencrypt (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoichi206 committed May 4, 2022
1 parent 897b230 commit 6765731
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eks/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sakamichi-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt
spec:
ingressClassName: nginx
rules:
Expand All @@ -22,3 +24,7 @@ spec:
name: sakamichi-api-service
port:
number: 80
tls:
- hosts:
- "api.kokoichi.link"
secretName: sakamichi-api-cert
14 changes: 14 additions & 0 deletions eks/issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt
spec:
acme:
email: [email protected]
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-account-private-key
solvers:
- http01:
ingress:
class: nginx

0 comments on commit 6765731

Please sign in to comment.