ikke-t / certbot-ocp Goto Github PK
View Code? Open in Web Editor NEWUtility for creating and updating SSL certificates for routes in OpenShift project. Uses Let's Encrypt and NGINX
License: GNU General Public License v3.0
Utility for creating and updating SSL certificates for routes in OpenShift project. Uses Let's Encrypt and NGINX
License: GNU General Public License v3.0
Currently, this just runs through and keeps relooping. It needs to be manually scaled up/down.
As a user, I want to have a periodical run of certbot-ocp. I want it to be be run e.g. weekly.
This was developed in OpenShift online, where one is not cluster-admin. But for such clusters where you are and admin, it sure would be nice to offer the service via an operator.
So create an operator, which set's up a kube cron job for cert renewal, and monitors for route creations and kicks this container to install certs when a new route is created or updated with proper label.
Add this kind of k8s part into playbook: oc delete all -l app=certbot-ocp
If container image is present on node, certbot is started really fast and now svc is created after pod and it is not present when pod is running.
Service creation needs to be moved before pod creation
Now when working with multiple routes some cert creations fail randomly. Adding 5 sec timeout after route creation cert creation seems to fix this.
Add annotation to route that describes when cert has been created and/or expire date.
Create helm chart
I took a shortcut, and built the first version using an existing nginx-s2i image, as it was quick to re-use. However, the size is awful. Create smaller version of this image by using ubi-minimal -like image.
Error from server (NotFound): services "certbot-ocp" not found. Should be able to overwrite from ENV var. Might be that single namespace has multiple certbots running...different account emails.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.