Skip to content
Snippets Groups Projects
Commit ce963054 authored by Dan Lorenc's avatar Dan Lorenc
Browse files

Setup let's encrypt and cert manager.

parent 5644c901
No related branches found
No related tags found
No related merge requests found
......@@ -34,3 +34,9 @@ Then deploy with:
```
ko apply -f config/
```
## Ingress
Install cert-manager with helm, using https://cert-manager.io/docs/installation/kubernetes/#installing-with-helm
Install nginx-ingress with: kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.43.0/deploy/static/provider/cloud/deploy.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: rekor
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- api.rekor.dev
secretName: rekor-ingress-tls
rules:
- host: api.rekor.dev
http:
paths:
- path: /
backend:
serviceName: rekor-server
servicePort: 80
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-prod
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: dlorenc@google.com
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-prod
# Enable the HTTP-01 challenge provider
solvers:
- http01:
ingress:
class: nginx
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server URL
server: https://acme-staging-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: dlorenc@google.com
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-staging
# Enable the HTTP-01 challenge provider
solvers:
- http01:
ingress:
class: nginx
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment