acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.13k stars 101 forks source link

Support specifying service types for different ingress controllers #1340

Open cloudnautique opened 1 year ago

cloudnautique commented 1 year ago

Some ingress controllers run outside of the cluster (AWS ALB) and require that the service be exposed via NodePort. Today Acorn only supports Cluster IP and LoadBalancer types.

One possible solution could be defining a top level acorn.io/ingress-class resource type that specifies k8s ingress class and service types that should be created to interact with it. The default should be clusterIP, and optionally allow nodeport.

If an acorn.io ingress class isn't defined we should fall back to the current behavior.

cjellick commented 1 year ago

global setting - ingress is node port. could possibly do as annotating the ingress class and we could pick it up.