Skip to content

Update Helm Template Files

Go to your Chart files: ./deployment/helm/templates directory

Update the service.tpl

If you have service annotations for things like DataDog, add them to the metadata

Example:

  annotations:
      ad.datadoghq.com/service.check_names: '["http_check", "http_check"]'
      ad.datadoghq.com/service.init_configs: '[{},{}]'
      ad.datadoghq.com/service.instances: |
        [
            {
              "name": "{{ .Values.name }}.{{ .Values.self_namespace }}.svc.cluster.local",
              "url": "http://{{ .Values.name }}.{{ .Values.self_namespace }}.svc.cluster.local/myaccount/orderhistory/api/health",
              "timeout": 10,
              "include_content": true,
              "content_match": "UP",
              "http_response_status_code": "200",
              "ignore_ssl_warning": true,
              "disable_ssl_validation": true,
              "check_certificate_expiration": false,
              "tags": ["client-di:true", "check_url_type:internal", "service:{{ .Values.name }}"] [update client reference](liatrio-tag)
            },
            {
              "name": "{{ .Values.fqdn }}",
              "url": "https://{{ .Values.fqdn }}/myaccount/orderhistory/api/health",
              "timeout": 10,
              "include_content": true,
              "content_match": "UP",
              "http_response_status_code": "200",
              "ignore_ssl_warning": true,
              "disable_ssl_validation": true,
              "check_certificate_expiration": false,
              "tags": ["client-di:true", "check_url_type:external", "service:{{ .Values.name }}"] [update client reference](liatrio-tag)
            }
        ]