<p>I tried to create a pod with a particular environment for uwsgi configuration , but it was this message : <br/>
<em>failed to load "phptime.yml": JSON: I can not unpack the number in the value of the string type Go</em>
when I tried to run this command : <br/>
<strong>kubectl create -f phptime.yml</strong> <br/>
I found that trouble in environments that has names like this: <br/>
<strong>UWSGI_HTTP-MODIFIER1</strong> <br/>
<strong>or <br/>
UWSGI_PHP-SAPI-NAME</strong> <br/>
or <br/>
<strong>UWSGI_MASTER-AS-ROOT</strong> <br/>
but with environments that has a next names all ok: <br/>
<strong>UWSGI_HTTP</strong> <br/>
or <br/>
<strong>UWSGI_INCLUDE</strong> <br/>
A lot of our containers took configuration from environments and I need include all of my conf environments. This is my rc conf:</p>

<blockquote>
<pre><code>  containers:
  - name: phptime
    image: ownregistry/phpweb:0.5
    env:
    - name: UWSGI_UID
      value: go
    - name: UWSGI_GID
      value: go
    - name: UWSGI_INCLUDE
      value: /var/lib/go-agent/pipelines/test/test-dev0/.uwsgi_dev.ini
    - name: UWSGI_PHP-SAPI-NAME
      value: apache
    - name: UWSGI_HTTP
      value: :8086
    - name: UWSGI_HTTP-MODIFIER1
      value: 14
    - name: UWSGI_PIDFILE
      value: '/tmp/uwsgi.pid'
    - name: UWSGI_MASTER-FIFO
      value: '/tmp/fifo0'
    - name: UWSGI_MASTER-AS-ROOT
      value: 'true'
    - name: UWSGI_MASTER
      value: 'true'
    ports:
    - containerPort: 8086
    resources:
      limits:
        cpu: 500m
        memory: 200Mi
      requests:
        cpu: 500m
        memory: 200Mi
    volumeMounts:
    - mountPath: /var/lib/go-agent/pipelines/test/test-dev0/
      name: site
      readOnly: true
  volumes:
  - hostPath:
      path: /home/user/www/
    name: site
</code></pre>
</blockquote>

<p>Is this kubernetes issue or it`s my? How to solve this? Thanks!</p>

<p>You must quote all of the values that you want to set as environment variables that the yaml parser might interpret as a non-string type. </p>

<p>For example, in <a href="https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/coreos/kube-manifests/addons/cluster-monitoring/influxdb/influxdb-grafana-controller.yaml" rel="nofollow">influxdb-grafana-controller.yaml</a> the values <code>true</code> and <code>false</code> are quoted because they could be interpreted as booleans. The same constraint applies to purely numerical values. </p>
