Comments (5)
I'm interested in this 👍
from ingress-operator.
What would make sense in terms of configuration and the user-experience?
from ingress-operator.
You could use external-dns annotations:
apiVersion: openfaas.com/v1alpha2
kind: FunctionIngress
metadata:
name: nodeinfo
namespace: openfaas
annotations:
external-dns.alpha.kubernetes.io/hostname: example.com
external-dns.alpha.kubernetes.io/ttl: "120" #optional
spec:
domain: "nodeinfo.myfaas.club"
function: "nodeinfo"
ingressType: "nginx"
Or we could add our flag on spec
, following the same pattern as ingressType
:
apiVersion: openfaas.com/v1alpha2
kind: FunctionIngress
metadata:
name: nodeinfo
namespace: openfaas
spec:
domain: "nodeinfo.myfaas.club"
function: "nodeinfo"
ingressType: "nginx"
# this
externalDns: "true"
# or
enableExternalDns: "true"
What do you think?
from ingress-operator.
The first example will work once #7 is merged, could you try that out and then we'll look at the demand for a custom annotation inside the spec
after that, depending on demand from the users?
from ingress-operator.
Wow, that's cool! Personally, I prefer the first one, but if there's demand for a custom flag we can implement it.
I'll test the external-dns
and let you know.
As an another discussion (I can open another issue for that if necessary), since the annotations are being copied we could make the FunctionIngress
more standard, like this:
apiVersion: openfaas.com/v1alpha2
kind: FunctionIngress
metadata:
name: nodeinfo-tls
namespace: openfaas
annotations:
# Use standard nginx-ingress annotation
kubernetes.io/ingress.class: "nginx"
# Use standard cert-manager annotation
certmanager.k8s.io/issuer: "letsencrypt-staging"
# or
certmanager.k8s.io/cluster-issuer: "letsencrypt-staging"
spec:
domain: "nodeinfo-tls.myfaas.club"
function: "nodeinfo"
# Remove this flag and use standard nginx annotation
ingressType: "nginx"
tls:
enabled: true
# Remove this flag and use standard cert-manager annotation
issuerRef:
name: "letsencrypt-staging"
kind: "Issuer"
What do you think?
from ingress-operator.
Related Issues (20)
- kubectl apply artifacts/operator-amd64.yaml HOT 1
- kubectl apply artifacts/operator-rbac.yaml HOT 1
- Prepare for Kubernetes 1.8 Ingress changes HOT 7
- Nginx Ingress Annotations Not Applied HOT 11
- [Bug] Traefik annotations don't work for any paths (except root for old Traefik versions) HOT 2
- The Path field from FunctionIngress' Spec is missing from the YAML CRD
- Create cert using domain instead of function name
- Readme instructions for nginx ingress fail with helm3 HOT 2
- Update readme and examples to show path is required HOT 3
- Sync created resources upon edit of CustomResource HOT 6
- Convert CI to GitHub Actions HOT 4
- [FEATURE REQUEST] wildcard domain on Ingress Operator - use case
- Update cert-manager API version in README HOT 1
- Function not invokable at specified path; returns 404 (nginx) HOT 10
- Update to latest API group for Ingress to support K8s 1.22+ HOT 8
- Fix badge for CI status
- How do I get the full path for a REST-style function? HOT 4
- Update CI and Dockerfile to use Go 1.18
- Migrate from scratch to distroless
- Support for watching multiple or all namespaces in ingress-operator HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ingress-operator.