<p>I have one .netcore Web App running in "docker". So started to cluster it with kubernetes. Has four configs on the appsettings.json that will be converted by environment variables(all between "${}"):</p>

<pre><code>   {
  "ConnectionSettings": [
    {
      "id": "${connectionSettings.connectionString.idMongoDb}",
      "databaseName": "${connectionSettings.connectionString.databaseName}",
      "connectionString": "${connectionSettings.connectionString.mongoDB}"
    }
  ],
    {
      "Key": "Token.Issuer",
      "Value": "${configuration.token.issuer}",
      "Description": "",
      "ModifiedDate": "2018-05-05 00:00:00.0000000",
      "ModifiedBy": "system",
      "AllowedProfiles": 1
    }
}
</code></pre>

<p>It's a bit of my <strong>.yaml</strong> file:</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp-dev-api-dep
  labels:
    app: myapp-dev-api-dep
    tier: app
    version: v1
spec:
  selector:
    matchLabels:
      app: myapp-dev-api
      tier: app
      version: v1
  replicas: 1
  template:
    metadata:
      labels:
        app: myapp-dev-api
        tier: app
        version: v1
    spec:
      containers:
        - name: myapp-dev-api
          image: 'myappapi_tstkube:latest'
          env:
            - name: connectionSettings.connectionString.mongoDB
              value: mongodb://192.168.20.99:27017
            - name: configuration.token.issuer
              value: '86400'
          ports:
            - name: http 
              containerPort: 80
              protocol: TCP
          livenessProbe:
            initialDelaySeconds: 30
            periodSeconds: 3600
            httpGet:
              path: /swagger/index.html
              port: 80
          resources:
            requests:
              cpu: 25m
              memory: 200Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          imagePullPolicy: IfNotPresent
      restartPolicy: Always
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 25%
      maxSurge: 25% 
</code></pre>

<p>Take a look in my configs:</p>

<p><a href="https://i.stack.imgur.com/KKM79.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KKM79.png" alt="enter image description here"></a></p>

<p>The variable "<strong>connectionSettings.connectionString.mongoDB</strong>" works. But the variable "<strong>configuration.token.issuer</strong>" can't substituted on the appsetting.</p>

<p>Made some tests. I found the problem only with variables of numbers.</p>

<p>Has somebody an idea or have you had the problem?</p>

<p>vlw</p>

Davidson Dd-harlie
<p>The problem was in the yamls identification code. You may have many problems with the error space in the yaml file.</p>

<p><a href="https://github.com/helm/helm/blob/master/docs/chart_template_guide/yaml_techniques.md" rel="noreferrer">https://github.com/helm/helm/blob/master/docs/chart_template_guide/yaml_techniques.md</a></p>

<p>About the number. Both answers are right. You can use single quotation marks '86400' and ACII "\ x38 \ x36 \ x34 \ x30 \ x30".</p>

<p>Thank you everybody</p>
