<p>I have a requirement to add  kubernetes Service with an ExternalName  pointing to NLB(in a different AWS account).
I am using terraform to implement this.
I am not sure how to use NLB info external name section.
Can someone please help?</p>
<pre><code>   resource &quot;kubernetes_service&quot; &quot;test_svc&quot; {
      metadata {
        name      = &quot;test&quot;
        namespace = var.environment
        labels = {
          app = &quot;test&quot;
        }
      }
      spec {
        type          = &quot;ExternalName&quot;
        **external_name =** 
      }
    }
</code></pre>

Kumar
<p>Usage of external name is as follows:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: my-service
  namespace: prod
spec:
  type: ExternalName
  externalName: my.database.example.com
</code></pre>
<p>Try to put the NLB CNAME as the external name</p>
