Uploaded image for project: 'National Data Service'
  1. National Data Service
  2. NDS-896

Kubernetes doesn't like names starting with numbers

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • None
    • NDS Sprint 27

    Description

      Cloned a service to name "2chord" and it wouldn't start.  Noticed the following error in the Kuberntes logs:

       

      The ReplicationController "sgphws-influx" is invalid:

      • spec.template.spec.containers[0].env[10].name: Invalid value: "2CHORDS_PORT_80_TCP_ADDR": must match the regex [A-Za-z_][A-Za-z0-9_]* (e.g. 'my_name' or 'MY_NAME' or 'MyName')
      • spec.template.spec.containers[0].env[11].name: Invalid value: "2CHORDS_PORT_80_TCP_PORT": must match the regex [A-Za-z_][A-Za-z0-9_]* (e.g. 'my_name' or 'MY_NAME' or 'MyName')

       

      Apparently we can't have keys starting with anything but  [A-Za-z_]

      Gliffy Diagrams

        Attachments

          Activity

            People

              lambert8 Sara Lambert
              willis8 Craig Willis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 20 minutes
                  20m
                  Remaining:
                  Remaining Estimate - 20 minutes
                  20m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Tasks