Add custom configuration for kubernetes execution

DrissiReda
DrissiReda Registered Posts: 57 ✭✭✭✭✭

I can run dataiku jobs as kubernetes pods. I want to also add the setting:

securityContext:

runAsNonRoot: true

But using "Custom properties" doesn't work. I added a property:

- spec.securityContext.runAsNonRoot ==> true

Anyway I could achieve this?

Best Answer

  • fchataigner2
    fchataigner2 Dataiker Posts: 355 Dataiker
    Answer ✓

    Hi,

    on container configurations, "custom properties" are flags for use by DSS, they're not passed to Kubernetes. If you need alterations on the yaml sent to Kubernetes, only what's available in the container configuration is overridable (limits, requests, tolerations, ...).

    The only way to alter the yaml sent to Kubernetes beyond what's available in the container configurations is to manually edit the yaml templates in the resources/container-exec/kubernetes/ subfolder of the DSS installation. Note that doing so obviously voids support.

Setup Info
    Tags
      Help me…