serverless / serverless-kubeless

This plugin enables support for Kubeless within the Serverless Framework.
Apache License 2.0
303 stars 81 forks source link

Is it supports kubernetes deployment annotations like ingress? #226

Closed kingpeti closed 4 years ago

kingpeti commented 4 years ago

I have to annotate all functions(lots) with service mesh in deployment. How to do that?

andresmgot commented 4 years ago

Hi, it's possible to configure Kubeless to modify the default Deployment template for all functions, not sure if that would work for you. More info here: https://kubeless.io/docs/function-controller-configuration/

kingpeti commented 4 years ago

Thanks, the ConfigMap kind: Function part is that I need but can I configure that in serverless.yml?

andresmgot commented 4 years ago

At this moment, annotations cannot be declared globally in the serverless.yml file. Only the properties: runtime, memorySize, timeout, cpu, affinity, tolerations, volumes and volumeMounts can be defined per provider.

kingpeti commented 4 years ago

Thanks. I'll be looking forward to using this annotation feature.