Skip to content

Instantly share code, notes, and snippets.

@smothiki
Last active August 29, 2015 14:16
Show Gist options
  • Save smothiki/6a0e59039be2e05a5f3b to your computer and use it in GitHub Desktop.
Save smothiki/6a0e59039be2e05a5f3b to your computer and use it in GitHub Desktop.
kubernetes name error
ERROR k8stest: k8stest_v2.web.1 (create): Failed to retrieve unit: 422 status code 422 - {
Mar 06 03:56:42 sh[8612]: "kind": "Status",
Mar 06 03:56:42 sh[8612]: "creationTimestamp": null,
Mar 06 03:56:42 sh[8612]: "apiVersion": "v1beta1",
Mar 06 03:56:42 sh[8612]: "status": "Failure",
Mar 06 03:56:42 sh[8612]: "message": "Pod \"k8stest_v2.web.1\" is invalid: [metadata.name: invalid value 'k8stest_v2.web.1': name must be lowercase letters and numbers, with inline dashes or periods, spec.containers[0].name: invalid value 'k8stest_v2.web.1']",
Mar 06 03:56:42 sh[8612]: "reason": "Invalid",
Mar 06 03:56:42 sh[8612]: "details": {
Mar 06 03:56:42 sh[8612]: "id": "k8stest_v2.web.1",
Mar 06 03:56:42 sh[8612]: "kind": "Pod",
Mar 06 03:56:42 sh[8612]: "causes": [
Mar 06 03:56:42 sh[8612]: {
Mar 06 03:56:42 sh[8612]: "reason": "FieldValueInvalid",
Mar 06 03:56:42 sh[8612]: "message": "metadata.name: invalid value 'k8stest_v2.web.1': name must be lowercase letters and numbers, with inline dashes or periods",
Mar 06 03:56:42 sh[8612]: "field": "metadata.name"
Mar 06 03:56:42 sh[8612]: },
Mar 06 03:56:42 sh[8612]: {
Mar 06 03:56:42 sh[8612]: "reason": "FieldValueInvalid",
Mar 06 03:56:42 sh[8612]: "message": "spec.containers[0].name: invalid value 'k8stest_v2.web.1'",
Mar 06 03:56:42 sh[8612]: "field": "spec.containers[0].name"
Mar 06 03:56:42 sh[8612]: }
Mar 06 03:56:42 sh[8612]: ]
Mar 06 03:56:42 sh[8612]: },
Mar 06 03:56:42 sh[8612]: "code": 422
Mar 06 03:56:42 sh[8612]: }
kubelet errors
Failed to introspect pod infra container: API error (500): Cannot start container 2a92cfa31dd47185685cd1917196f10b87ea1b2fb4f0ef20240ac34d8fde4dd3: Bind for 0.0.0.0:80 failed: port is already al
Mar 06 04:13:43 deis-03 bash[1878]: ; Skipping pod "k8stest1.default.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment