<p>I created  a service which works perfectly in kubernetes.</p>

<p>Then i moved the connection string to a kubernetes secret; this is my yaml config:</p>

<pre><code>    env:
      - name: AZURE_CONNECTION
        valueFrom:
          secretKeyRef:
            name: azure
            key: connection-string
</code></pre>

<p>But since then the the scheduling of the pod fails</p>

<blockquote>
  <p>Error: failed to start container "myservice-api-host": Error response
  from daemon: oci runtime error: container_linux.go:247: starting
  container process caused "process_linux.go:295: setting oom score for
  ready process caused \"write /proc/22658/oom_score_adj: invalid
  argument\""</p>
</blockquote>

<p>The reason was that the secret was base64 encoded based on a UTF16 string.  </p>

<p>After encoding the secret in <strong>UTF8</strong> then Base64 everything works fine</p>
