Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
/ cert-julip Public archive

Enable cert-manager to work with Openshift routes

License

Notifications You must be signed in to change notification settings

Jmainguy/cert-julip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived

I wrote this to fix a issue in openshift 3.x, where it could not take full advantage of cert-manager for routes. I no longer have any interactions with openshift, so I am archiving this repo.

cert-julip

Purpose

To provide a bridge between cert-manager and openshift

History

cert-manager is great at generating, and managing certificates, it stores these certificates in secrets, which kubernetes ingress can then use.

Openshift however does not allow secrets in their routes, so it is unable to effectively use cert-manager in an automated fashion.

cert-julip looks for the certificate: label in a route, where the value will be the cert-manager kind=certificate you want to use.

cert-julip gets the secret from the certificate, and then adds the certs and key from the secret into the route.

How To

  1. Setup a certificate with cert-manager first. Yaml will look similiar to
---
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
  name: jmainguy-example-com
  namespace: jmainguy
spec:
  secretName: jmainguy-example-com-tls
  issuerRef:
    name: letsencrypt-prod
    kind: ClusterIssuer
  commonName: 'jmainguy.example.com'
  dnsNames:
  - jmainguy.example.com
  acme:
    config:
    - dns01:
        provider: route53
      domains:
      - jmainguy.example.com
  1. Edit openshift route and add label
apiVersion: route.openshift.io/v1
kind: Route
metadata:
  labels:
    certificate: jmainguy-example-com
  1. cert-julip will auto-populate the certificate, key, and ca certificate from the cert-manager certificate you linked to above. This works with edge, and reencrypt routes

About

Enable cert-manager to work with Openshift routes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published