openfaas / openfaas-cloud

The Multi-user OpenFaaS Platform
https://docs.openfaas.com/openfaas-cloud/intro/
MIT License
770 stars 228 forks source link

[Feature Request] Custom domains on OFC using IngressOperator #646

Open Waterdrips opened 4 years ago

Waterdrips commented 4 years ago

There has been requests to allow custom domains in OFC (https://github.com/openfaas/openfaas-cloud/issues/520)

We now have FunctionIngress CRD provided by the IngressOperator provided as an option in the ofc-bootstrap installer.

We could read annotations like

com.openfaas.cloud.custom-domain: "my-fn.example.com"
com.openfaas.cloud.custom-domain.tls: true

and create the FunctionIngress CRD.

Provided a user points their domain at the cluster (A or CNAME? ) then they could get a LetsEncrypt TLS cert if they wanted.

Im suggesting:

Waterdrips commented 4 years ago

cc @alexellis issue for discussions