<p>I wanted to create a MySQL container in Kubernetes with default disabled strict mode. I know the way of how to disable strict mode in docker. I tried to use the same way in Kubernetes, but it shows an errors log.</p>
<p>docker</p>
<pre class="lang-sh prettyprint-override"><code>docker container run -t -d --name hello-wordl mysql --sql-mode=&quot;&quot;
</code></pre>
<p>kubernetes</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-db
  labels:
    app: db
spec:
  selector:
    matchLabels:
      app: db
  template:
    metadata:
      name: my-db
      labels:
        app: db
    spec:
      containers:
      - name: my-db
        image: mariadb
        imagePullPolicy: Always
        args: [&quot;--sql-mode=\&quot;\&quot;&quot;]

</code></pre>
<p>error:</p>
<blockquote>
<p>2021-10-29 08:20:57+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.2.40+maria~bionic started.
2021-10-29 08:20:57+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
command was: mysqld --sql-mode=&quot;&quot; --verbose --help --log-bin-index=/tmp/tmp.i8yL5kgKoq
2021-10-29  8:20:57 140254859638464 [ERROR] mysqld: Error while setting value '&quot;&quot;' to 'sql_mode'</p>
</blockquote>

<p>Based on the error you're getting, it is reading the double quotes as value to sql_mode. You should omit the escaped double-quotes.</p>
<pre><code>args: [&quot;--sql-mode=&quot;]
</code></pre>
