<p>I'm using GKE and Helm v3 and I'm trying to create/reserve a static IP address using ComputeAddress and then to create DNS A record with the previously reserved IP address.</p>
<p>Reserve IP address</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
  name: ip-address
  annotations:
    cnrm.cloud.google.com/project-id: project-id
spec:
  location: global
</code></pre>
<p>Get reserved IP address</p>
<pre><code>kubectl get computeaddress ip-address -o jsonpath='{.spec.address}'
</code></pre>
<p>Create DNS A record</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
  name: dns-record-a
  annotations:
    cnrm.cloud.google.com/project-id: project-id
spec:
  name: &quot;{{ .Release.Name }}.example.com&quot;
  type: &quot;A&quot;
  ttl: 300
  managedZoneRef:
    external: example-com
  rrdatas:
    - **IP-ADDRESS-VALUE** &lt;----
</code></pre>
<p>Is there a way to reference the IP address value, created by ComputeAddress, in the DNSRecordSet resource?</p>
<p>Basically, I need something similar to the output values in Terraform.</p>
<p>Thanks!</p>

Milan Ilic
<p>Currently, there is not possible to assign different value as string (IP Address) on the field &quot;rrdatas&quot;. So you are not able to &quot;call&quot; another resource like the IP Address created before. You need to put the value on format x.x.x.x</p>
