2021-01-13 00:39:52 UTC - Mina Michael: @Neeraj Mangal Hello. I'm trying to set the "schedulerName" for the pods that openwhisk creates. Like this: ```spec: schedulerName: <something>``` I've been following what you were saying above, but it seems complicated for me. I need more information.
First thing, I've edited `whiskconfig.conf` to look like this: ```whisk { metrics { prometheus-enabled = true } kubernetes { pod-template = "file:/action-pod-template.yaml" } }``` Then I edited `invoker-cm.yaml`to look like this: ```apiVersion: v1 kind: ConfigMap metadata: name: {{ .Release.Name }}-invoker-scripts labels: {{ include "openwhisk.label_boilerplate" .| indent 4 }} data: {{ (.Files.Glob "configMapFiles/dockerPullRuntimes/playbook.yml").AsConfig | indent 2 }} {{ (.Files.Glob "configMapFiles/configureDNS/configureDNS.sh").AsConfig | indent 2 }} action-pod-template.yaml: | {{ tpl (.Files.Get "configMapFiles/invoker/action-pod-template.yaml.tpl") . | indent 4 }}``` I believe the next step would be to add the file `configMapFiles/invoker/action-pod-template.yaml.tpl` but I don't know what it should look like. Also you said "Add volume mount for action template file." I don't understand what to do. Can you help me out? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610498392485200?thread_ts=1580760913.071500&cid=C3TPCAQG1 ---- 2021-01-13 00:40:59 UTC - Mina Michael: @Tom Barber If you can help me out, that would be great. You've got things working before. Also @Dave Grove and @Rodric Rabbah I would appreciate it if you clear things up for me if you can. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610498459485400?thread_ts=1580760913.071500&cid=C3TPCAQG1 ---- 2021-01-13 18:14:57 UTC - Mina Michael: Hi. I have been trying to set the "schedulerName" attribute of the invoker pods created by openwhisk. We have mentioned two methods. I've been following the one where I edit "openwhisk-deploy-kube" right away. Here is what I have done: `whiskconfig.conf` : ``` whisk { metrics { prometheus-enabled = true } kubernetes { pod-template = "file:/action-pod-template.yaml" } }``` `invoker-cm.yaml` : ```apiVersion: v1 kind: ConfigMap metadata: name: {{ .Release.Name }}-invoker-scripts labels: {{ include "openwhisk.label_boilerplate" .| indent 4 }} data: {{ (.Files.Glob "configMapFiles/dockerPullRuntimes/playbook.yml").AsConfig | indent 2 }} {{ (.Files.Glob "configMapFiles/configureDNS/configureDNS.sh").AsConfig | indent 2 }} action-pod-template.yaml: | {{ tpl (.Files.Get "configMapFiles/invoker/action-pod-template.yaml.tpl") . | indent 4 }}``` `configMapFiles/invoker/action-pod-template.yaml.tpl` : ```spec: schedulerName: <something>``` After making these modifications, I've installed openwhisk with helm, and created and invoked a function, but still, the pod created uses the default scheduler. Any ideas? @Neeraj Mangal I have been following your instructions. Can you clarify things for me? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610561697489600 ---- 2021-01-13 18:22:41 UTC - Rodric Rabbah: i’m not sure @Mina Michael will try this afternoon https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610562161489700?thread_ts=1610485348.477400&cid=C3TPCAQG1 ---- 2021-01-13 18:23:26 UTC - Rodric Rabbah: Yes that has to change. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610562206489900?thread_ts=1610380735.470700&cid=C3TPCAQG1 ---- 2021-01-13 18:23:45 UTC - Mina Michael: @Rodric Rabbah That would be great! I'm kind of stuck here. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610562225490100?thread_ts=1610485348.477400&cid=C3TPCAQG1 ---- 2021-01-13 19:24:23 UTC - Ben Carver: I created a custom Java Docker image for my function. When attempting to invoke my function, I get this error. Does anyone know how to resolve this? `wsk -i action invoke my-function-name -b -r -p name Ben` My handler is just: ```public static JsonObject main(JsonObject args) { String name = "stranger"; if (args.has("name")) name = args.getAsJsonPrimitive("name").getAsString(); JsonObject response = new JsonObject(); response.addProperty("greeting", "Hello " + name + "!"); return response; }``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610565863491300?thread_ts=1610565863.491300&cid=C3TPCAQG1 ---- 2021-01-13 19:34:45 UTC - Mina Michael: I'm looking into the templates folder of `openwhisk-deploy-kube`. Is one of those templates the one that is used to create "invoker" pods (which are the pods that get created when an action is invoked)? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610566485493100 ---- 2021-01-13 19:38:20 UTC - Rodric Rabbah: looks like you’re out of memory - did you try either giving the JVM more heap inside the container or allocation more memory to the action https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610566700493200?thread_ts=1610565863.491300&cid=C3TPCAQG1 ---- 2021-01-13 20:19:45 UTC - Ben Carver: Oh, duh. Thank you. I increased action memory to 512MB and it worked. Cheers. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610569185493400?thread_ts=1610565863.491300&cid=C3TPCAQG1 ---- 2021-01-13 20:23:29 UTC - Rodric Rabbah: :tada: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610569409493600?thread_ts=1610565863.491300&cid=C3TPCAQG1 ---- 2021-01-13 20:44:31 UTC - Alessandro Banfi: After deploying with helm I obtained more than one time the following error at the attempt to invoke an action named nat: `error: Unable to invoke action 'nat': The server is currently unavailable (because it is overloaded or down for maintenance). (code P4Ve6jTuggMLIaDoqqkL1yfzgGUMQi7s)` This seems pretty strange to me because looking at the pods it seems they are working as expected. Where have I to look in order to understand what is failing? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610570671496500?thread_ts=1610570671.496500&cid=C3TPCAQG1 ---- 2021-01-13 22:43:01 UTC - Alessandro Banfi: I found out the same behavior also if I just clone the repository, compile the containers without modifying any configuration or source code. The issue is apparently the same also after checking out the tag 1.0.0 of openwhisk git repo. If I use the version of the invoker container compiled from scratch (I left all the stuff untuched, just cloned and typed `gradle distDocker`) I obtain that the invoker pods remain perpetual Running also after the `helm unistall owdev -n openwhisk` command, like if something is broken and can't be deleted. I have to force their deletion via kubectl in order to remove them. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1610577781496600?thread_ts=1610570671.496500&cid=C3TPCAQG1 ----