title: Specify an `int` value in Kubernetes ConfigMap?
body: <p>Is there a way to specify <code>int</code> values in ConfigMap? When I try to specify a port number I get the following error.</p>
  
  <pre><code>error: error validating "my-deployment.yml": error validating data: expected type int, for field spec.template.spec.containers[0].ports[0].containerPort, got string; if you choose to ignore these errors, turn validation off with --validate=false
  </code></pre>
  
  <p>Here is the sample config file I am using:</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    name: my-service
  spec:
    replicas: 2
    template:
      metadata:
        labels:
          app: poweramp-email-service
      spec:
        containers:
        - name: poweramp-email-service
          env:
            - name: SERVICE_PORT_NUM
              valueFrom:
                configMapKeyRef:
                  name: stg-config
                  key: poweramp-email-service.port
          image: nginx
          ports:
          - containerPort: my-service.port
  </code></pre>
  
  <p>And here is the simple <code>stg.properties</code> file I am using to generate the ConfigMap using the command: <code>kubectl create configmap stg-config --from-file stg.properties</code></p>
  
  <pre><code>my-service.port=9513
  </code></pre>