O'Reilly logo

Kubernetes for Serverless Applications by Russ McKendrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Invoker

Again, the next pod we are deploying is going to be a StatefulSet rather than a deployment. Before we deploy the pod we need to make a slight change to the kubernetes/invoker/invoker.yml file. This is because, by default, OpenWhisk assumes you are running Ubuntu as your base operating system, which Google Cloud isn't.

To do this, open kubernetes/invoker/invoker.yml in your text editor of choice and remove the following block of code:

      - name: apparmor        hostPath:          path: "/usr/lib/x86_64-linux-gnu/libapparmor.so.1"

There is also another reference to apparmor we need to remove. This time it is towards the bottom of the file:

        - name: apparmor          mountPath: "/usr/lib/x86_64-linux-gnu/libapparmor.so.1"

Once the two code blocks that reference ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required