stunner icon indicating copy to clipboard operation
stunner copied to clipboard

[Feature request] Option to deploy the control plane as a DaemonSet

Open sdaberdaku opened this issue 1 year ago • 1 comments

I was able to deploy STUNner as a STUN service as described in this article, with the dataplane as DaemonSet (I manually converted the Deployment created by the operator). It would be great if you could support this mode of deployment automatically with some annotation in the Gateway CRD (i.e. stunner.l7mp.io/dataplane-deployment-mode: daemonset). The podAntiAffinity approach is doable but you would still need to manually set the number of replicas equal to the number of nodes so that each node gets a stunnerd Pod, which is not ideal if you provision them dynamically with Cluster Autoscaler or Karpenter.

sdaberdaku avatar Aug 31 '24 08:08 sdaberdaku

Full ack. Unfortunately currently there's no resource to automate this, so you'll have to do the manual Deployment-DaemonSet swap. On the long run, we should definitely support this.

I'll leave this one open, maybe someone will jump in and catch it up.

rg0now avatar Sep 02 '24 16:09 rg0now

This feature is available in the member tier (to be released in 1-2 weeks): https://github.com/l7mp/stunner/blob/main/docs/PREMIUM_REFERENCE.md#deploying-into-a-daemonset. Closing this for now, feel free to reopen if this is not what you asked for.

rg0now avatar May 06 '25 10:05 rg0now