Thank you guys. Something way too simple......... On Fri, Jan 22, 2016 at 10:00 AM, Michalis Kargakis <[email protected]> wrote:
> Hi John, > > the values passed in the environment of the container need to be strings > and not numbers. > > On Fri, Jan 22, 2016 at 3:23 PM, John Skarbek <[email protected]> > wrote: > >> Hey Guys, >> >> Is it not possible to throw multiple ENV vars into to the Deployment >> Config? Example: >> >> ``` >> --- >> >> apiVersion: v1 >> kind: DeploymentConfig >> metadata: >> name: sample-jvm-app >> spec: >> replicas: 1 >> selector: >> name: sample-jvm-app >> strategy: >> type: Rolling >> template: >> metadata: >> labels: >> name: sample-jvm-app >> spec: >> containers: >> - image: 172.30.234.213:5000/sample-project/sample-jvm-app:latest >> name: sample-jvm-app >> volumeMounts: >> - mountPath: /etc/secrets/application >> name: application-config >> readOnly: true >> env: >> - name: SECRETS_DIR >> value: /etc/secret-volume >> - name: LISTEN_PORT >> value: 5050 >> volumes: >> - name: application-config >> secret: >> secretName: sample-jvm-config-20160121-002 >> triggers: >> - type: ConfigChange >> - imageChangeParams: >> automatic: true >> containerNames: >> - sample-jvm-app >> from: >> kind: ImageStreamTag >> name: sample-jvm-app:latest >> type: ImageChange >> status: >> latestVersion: 1 >> ``` >> >> The output of the create: >> ``` >> I0122 13:58:03.077691 18549 debugging.go:102] curl -k -v -XGET -H >> "User-Agent: oc/v3.1.0.4 (linux/amd64) openshift/112fcc4" >> https://fqdn:8443/oapi >> I0122 13:58:03.106788 18549 debugging.go:121] GET >> https://fqdn:8443/oapi 200 OK in 29 milliseconds >> I0122 13:58:03.106814 18549 debugging.go:127] Response Headers: >> I0122 13:58:03.106822 18549 debugging.go:130] Cache-Control: >> no-store >> I0122 13:58:03.106827 18549 debugging.go:130] Content-Type: >> application/json >> I0122 13:58:03.106833 18549 debugging.go:130] Date: Fri, 22 Jan >> 2016 13:58:03 GMT >> I0122 13:58:03.106838 18549 debugging.go:130] Content-Length: 32 >> I0122 13:58:03.106872 18549 request.go:796] Response Body: { >> "versions": [ >> "v1" >> ] >> } >> I0122 13:58:03.107130 18549 decoder.go:144] decoding stream as YAML >> F0122 13:58:03.108081 18549 helpers.go:96] unable to load >> "/tmp/sample-project/sample-jvm-app-deploymentConfiguration.yml": json: >> cannot unmarshal number into Go value of type string >> ``` >> >> Once I rid of a second env variable it creates the app just fine. I >> can't find any openshift application logs that would tell me what I'm doing >> wrong. >> >> oc v3.1.0.4-16-g112fcc4 >> kubernetes v1.1.0-origin-1107-g4c8e6f4 >> >> -- >> >> John Skarbek >> >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> >> > -- John Skarbek Infrastructure Engineer CA Technologies | 1101 Haynes St, Suite 105 | Raleigh, NC 27604 Office: +1 720 921 8126 | [email protected] Rally is now CA Technologies [image: CA_logo.png] <http://www.ca.com>[image: TW.jpg] <https://twitter.com/CAinc>[image: SS.jpg] <http://www.slideshare.net/cainc>[image: FB.jpg] <https://www.facebook.com/CATechnologies>[image: YT.jpg][image: IN.jpg] <https://www.linkedin.com/company/ca-technologies>[image: G.jpg] <https://plus.google.com/+CATechnologies>[image: RSS.jpg] <http://blogs.ca.com/>[image: COM.jpg] <https://communities.ca.com/welcome>
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
