K8S helm chart templates containing names with static ports

XMLWordPrintable

    • Type: Documentation task
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: 6.0.6, 6.2.0
    • Component/s: Installation (I), Proxy (P)
    • None
    • Environment:
      Kubernetes

      Hello,

      we found out, that some names in helm chart templates contain static values with hardcoded port number. E.g.:

            containers:
              - name: zabbix-proxy
                image: "{{ .Values.zabbixProxy.image.repository }}:{{ .Values.zabbixProxy.image.tag }}"
                imagePullPolicy: {{ .Values.zabbixProxy.image.pullPolicy }}
                ports:
                  - containerPort: {{ .Values.zabbixProxy.service.port }}
                    protocol: TCP
                    name: 10051-tcp
        ports:
          - name: 10051-tcp
            port: {{ .Values.zabbixProxy.service.port }}
            protocol: TCP
            targetPort: {{ .Values.zabbixProxy.service.targetPort }}

      Impact:

      It has no impact on functionality, but live configurations in K8S are bit confusing then (from self-documentation perspective).

      Expected:

      Dynamic names depending on current port settings, or maybe better not including port numbers at all.

            Assignee:
            Denis Rasikhov (Inactive)
            Reporter:
            Richard Ostrochovský
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: