apache / openwhisk-deploy-kube

The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
https://openwhisk.apache.org/
Apache License 2.0
302 stars 232 forks source link

Tag-Based Scheduling #774

Open kcexn opened 9 months ago

kcexn commented 9 months ago

Is there a way to configure invokers with Tags using the helm charts?

i.e., as in the tag-based-scheduling in OpenWhisk.

For instance I was thinking of adding user-action pod templates with pod topology constraints to co-locate user-action pods in the same availability zone as its corresponding Invoker when possible. I'd like to be able to add tags to this so that I can force actions to be scheduled in specific zones.

style95 commented 9 months ago

I doubt it. IIRC, it is only applied to the ansible-based deployment. To co-locate action pods on the same nodes, we need a k8s-centric way such as labeling nodes and filtering out nodes using such labels at pod creation time, and so on.

hunhoffe commented 9 months ago

I don't think I implemented this at all due to time constraints when I ported over the new scheduler architecture. Here is an issue that I created, hoping someone else would pick up that and related tasks of dedicated invokers: https://github.com/apache/openwhisk-deploy-kube/issues/752