Skip to content
Snippets Groups Projects
Unverified Commit 3f2f0e45 authored by dlorenc's avatar dlorenc Committed by GitHub
Browse files

Merge pull request #111 from dlorenc/ingress

Setup let's encrypt and cert manager.
parents 096dcda4 ce963054
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