{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-deployer-kubernetes/issues/210","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-deployer-kubernetes","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-deployer-kubernetes/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-deployer-kubernetes/issues/210/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-deployer-kubernetes/issues/210/events","html_url":"https://github.com/spring-cloud/spring-cloud-deployer-kubernetes/issues/210","id":315093371,"number":210,"title":"Failed to apply default image tag, pod fails to start","user":{"login":"raffian","id":4412120,"avatar_url":"https://avatars2.githubusercontent.com/u/4412120?v=4","gravatar_id":"","url":"https://api.github.com/users/raffian","html_url":"https://github.com/raffian","followers_url":"https://api.github.com/users/raffian/followers","following_url":"https://api.github.com/users/raffian/following{/other_user}","gists_url":"https://api.github.com/users/raffian/gists{/gist_id}","starred_url":"https://api.github.com/users/raffian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffian/subscriptions","organizations_url":"https://api.github.com/users/raffian/orgs","repos_url":"https://api.github.com/users/raffian/repos","events_url":"https://api.github.com/users/raffian/events{/privacy}","received_events_url":"https://api.github.com/users/raffian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-17T14:43:07Z","updated_at":"2018-04-17T14:43:07Z","closed_at":null,"author_association":"NONE","body":"SC Deployer Kubernetes: **1.3.2.RELEASE**\r\nSpringboot: **1.5.10.RELEASE**\r\nkubernetes: **1.6.1+5115d708d7**\r\nOpenshift **3.6.173.0.96**\r\n```\r\nSpringboot application running in Openshift using SCDK, pod is created but fails on startup with following error; is application.yml missing a config parameter for proper labeling?\r\n\r\n```\r\nError syncing pod\r\n25 times in the last 7 minutes\r\n4:04:31 PMWarningInspect failed Failed to apply default image tag \"/tmp/deployer-resource-cache3479109984711030055/http-893992f79f23d862c98aece22ed94f27287b2076\": couldn't parse image reference \"/tmp/deployer-resource-cache3479109984711030055/http-893992f79f23d862c98aece22ed94f27287b2076\": invalid reference format\r\n13 times in the last 7 minutes\r\n\r\n\r\n# application.yml\r\n```\r\nserver:\r\n  port: 8083\r\nmanagement:\r\n  security:\r\n    enabled: false\r\n  info:\r\n    git:\r\n      mode: full\r\nspring:\r\n  profiles:\r\n    active: local\r\n  cloud:\r\n    config:\r\n      enabled: false\r\n    deployer:\r\n      kubernetes:\r\n        namespace: mkt-dev\r\n        requests:\r\n          cpu: 500m\r\n          memory: 500Mi\r\n        limits:\r\n          cpu: 500m\r\n          memory: 500Mi\r\n      memory: 500Mi\r\n      cpu: 500m\r\n```\r\n\r\n# Failed POD yaml\r\n```\r\napiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  annotations:\r\n    openshift.io/scc: restricted\r\n  creationTimestamp: '2018-04-16T20:04:02Z'\r\n  labels:\r\n    role: spring-app\r\n    spring-app-id: pdap-demo-task-0yx88kz04z\r\n    spring-deployment-id: pdap-demo-task-0yx88kz04z\r\n    task-name: pdap-demo-task\r\n  name: pdap-demo-task-0yx88kz04z\r\n  namespace: mkt-dev\r\n  resourceVersion: '36715418'\r\n  selfLink: /api/v1/namespaces/mkt-dev/pods/pdap-demo-task-0yx88kz04z\r\n  uid: 4edb1aa3-41b1-11e8-95fb-0050568b43c8\r\nspec:\r\n  containers:\r\n    - env:\r\n        - name: SPRING_CLOUD_APPLICATION_GUID\r\n          value: '${HOSTNAME}'\r\n      image: >-\r\n        /tmp/deployer-resource-cache3479109984711030055/http-893992f79f23d862c98aece22ed94f27287b2076\r\n      imagePullPolicy: IfNotPresent\r\n      name: pdap-demo-task-0yx88kz04z\r\n      resources:\r\n        limits:\r\n          cpu: 500m\r\n          memory: 500Mi\r\n        requests:\r\n          cpu: 500m\r\n          memory: 500Mi\r\n      securityContext:\r\n        capabilities:\r\n          drop:\r\n            - KILL\r\n            - MKNOD\r\n            - SETGID\r\n            - SETUID\r\n            - SYS_CHROOT\r\n        privileged: false\r\n        runAsUser: 1000630000\r\n        seLinuxOptions:\r\n          level: 's0:c25,c15'\r\n      terminationMessagePath: /dev/termination-log\r\n      terminationMessagePolicy: File\r\n      volumeMounts:\r\n        - mountPath: /var/run/secrets/kubernetes.io/serviceaccount\r\n          name: default-token-fpv53\r\n          readOnly: true\r\n  dnsPolicy: ClusterFirst\r\n  imagePullSecrets:\r\n    - name: default-dockercfg-2mzrn\r\n  nodeName: nvdlosapp15.ny.ofi.com\r\n  nodeSelector:\r\n    noderole: nonprod\r\n  restartPolicy: Never\r\n  schedulerName: default-scheduler\r\n  securityContext:\r\n    fsGroup: 1000630000\r\n    seLinuxOptions:\r\n      level: 's0:c25,c15'\r\n  serviceAccount: default\r\n  serviceAccountName: default\r\n  terminationGracePeriodSeconds: 30\r\n  volumes:\r\n    - name: default-token-fpv53\r\n      secret:\r\n        defaultMode: 420\r\n        secretName: default-token-fpv53\r\nstatus:\r\n  conditions:\r\n    - lastProbeTime: null\r\n      lastTransitionTime: '2018-04-16T20:04:02Z'\r\n      status: 'True'\r\n      type: Initialized\r\n    - lastProbeTime: null\r\n      lastTransitionTime: '2018-04-16T20:04:02Z'\r\n      message: 'containers with unready status: [pdap-demo-task-0yx88kz04z]'\r\n      reason: ContainersNotReady\r\n      status: 'False'\r\n      type: Ready\r\n    - lastProbeTime: null\r\n      lastTransitionTime: '2018-04-16T20:04:02Z'\r\n      status: 'True'\r\n      type: PodScheduled\r\n  containerStatuses:\r\n    - image: >-\r\n        /tmp/deployer-resource-cache3479109984711030055/http-893992f79f23d862c98aece22ed94f27287b2076\r\n      imageID: ''\r\n      lastState: {}\r\n      name: pdap-demo-task-0yx88kz04z\r\n      ready: false\r\n      restartCount: 0\r\n      state:\r\n        waiting:\r\n          message: >-\r\n            Failed to apply default image tag\r\n            \"/tmp/deployer-resource-cache3479109984711030055/http-893992f79f23d862c98aece22ed94f27287b2076\":\r\n            couldn't parse image reference\r\n            \"/tmp/deployer-resource-cache3479109984711030055/http-893992f79f23d862c98aece22ed94f27287b2076\":\r\n            invalid reference format\r\n          reason: InvalidImageName\r\n  hostIP: 10.18.24.79\r\n  phase: Pending\r\n  qosClass: Guaranteed\r\n  startTime: '2018-04-16T20:04:02Z'\r\n```"}}
{"actor":{"display_login":"raffian"}}